Remove print_fuel_crate field of Session

This commit is contained in:
bjorn3 2021-08-30 14:41:09 +02:00
parent 5464b2e713
commit c9abc7e2bb
2 changed files with 3 additions and 8 deletions

View file

@ -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)
);
}