diff options
| author | bors <bors@rust-lang.org> | 2021-09-02 13:12:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-09-02 13:12:59 +0000 |
| commit | fcce644119cf4e8e36001368e514bb5ed67cb855 (patch) | |
| tree | 8058e32ec6ced8b9d3ac006686263aba91a4ae17 /compiler/rustc_driver/src | |
| parent | 64929313f53181636e4dd37e25836973205477e4 (diff) | |
| parent | 74c7f1267b2afe17332ba3aa6b00eb9452404cf3 (diff) | |
| download | rust-fcce644119cf4e8e36001368e514bb5ed67cb855.tar.gz rust-fcce644119cf4e8e36001368e514bb5ed67cb855.zip | |
Auto merge of #88530 - bjorn3:shrink_session, r=cjgillot
Shrink Session a bit Remove a couple of unnecessary fields from `Session` and remove a `Lock<T>` for a field that is never mutated anyway.
Diffstat (limited to 'compiler/rustc_driver/src')
| -rw-r--r-- | compiler/rustc_driver/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs index fcc70b2e4c5..53053327d0d 100644 --- a/compiler/rustc_driver/src/lib.rs +++ b/compiler/rustc_driver/src/lib.rs @@ -423,10 +423,10 @@ fn run_compiler( sess.print_perf_stats(); } - if sess.print_fuel_crate.is_some() { + if sess.opts.debugging_opts.print_fuel.is_some() { eprintln!( "Fuel used by {}: {}", - sess.print_fuel_crate.as_ref().unwrap(), + sess.opts.debugging_opts.print_fuel.as_ref().unwrap(), sess.print_fuel.load(SeqCst) ); } |
