Fix some nits

This commit is contained in:
Simonas Kazlauskas 2017-04-11 15:57:49 +03:00
parent a384f131cb
commit e18c59fd48
3 changed files with 7 additions and 6 deletions

View file

@ -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(),