mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Initial attempt at implementing optimization fuel and re-enabling struct field reordering.
This commit is contained in:
parent
98eb121b7a
commit
0931e2006a
@ -522,7 +522,7 @@ impl Session {
|
||||
duration_to_secs_str(self.perf_stats.decode_def_path_tables_time.get()));
|
||||
}
|
||||
|
||||
/// We want to know if we're allowed to do an optimization for crate foo from -z fuel=foo=n.
|
||||
/// We want to know if we're allowed to do an optimization for crate crate.
|
||||
/// This expends fuel if applicable, and records fuel if applicable.
|
||||
pub fn consider_optimizing<T: Fn() -> String>(&self, crate_name: &str, msg: T) -> bool {
|
||||
let mut ret = true;
|
||||
|
Loading…
Reference in New Issue
Block a user