Fix some nits
This commit is contained in:
parent
a384f131cb
commit
e18c59fd48
3 changed files with 7 additions and 6 deletions
|
|
@ -518,7 +518,9 @@ impl<'a> CompilerCalls<'a> for RustcDefaultCalls {
|
|||
}
|
||||
|
||||
if sess.print_fuel_crate.is_some() {
|
||||
control.compilation_done.callback = box |state| {
|
||||
let old_callback = control.compilation_done.callback;
|
||||
control.compilation_done.callback = box move |state| {
|
||||
old_callback(state);
|
||||
let sess = state.session;
|
||||
println!("Fuel used by {}: {}",
|
||||
sess.print_fuel_crate.as_ref().unwrap(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue