1
Fork 0

Remove old box syntax

This commit is contained in:
Alex HotShot Newman 2015-05-20 11:20:15 -07:00
parent e38a672fe0
commit 2fbb445b67

View file

@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed // option. This file may not be copied, modified, or distributed
// except according to those terms. // except according to those terms.
#![feature(box_syntax)]
#![feature(box_patterns)]
#![feature(rustc_private)] #![feature(rustc_private)]
#![feature(collections)] #![feature(collections)]
#![feature(str_char)] #![feature(str_char)]
@ -224,7 +222,7 @@ impl<'a> CompilerCalls<'a> for RustFmtCalls {
let write_mode = self.write_mode; let write_mode = self.write_mode;
let mut control = driver::CompileController::basic(); let mut control = driver::CompileController::basic();
control.after_parse.stop = Compilation::Stop; control.after_parse.stop = Compilation::Stop;
control.after_parse.callback = box move |state| { control.after_parse.callback = Box::new(move |state| {
let krate = state.krate.unwrap(); let krate = state.krate.unwrap();
let codemap = state.session.codemap(); let codemap = state.session.codemap();
let mut changes = fmt_ast(krate, codemap); let mut changes = fmt_ast(krate, codemap);
@ -244,7 +242,7 @@ impl<'a> CompilerCalls<'a> for RustFmtCalls {
} }
} }
} }
}; });
control control
} }