From 2fbb445b671405e40aaf9eeaaecdd08340d67fd9 Mon Sep 17 00:00:00 2001 From: Alex HotShot Newman Date: Wed, 20 May 2015 11:20:15 -0700 Subject: [PATCH] Remove old box syntax --- src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 34a801dd369..08ee465dddf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,8 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -#![feature(box_syntax)] -#![feature(box_patterns)] #![feature(rustc_private)] #![feature(collections)] #![feature(str_char)] @@ -224,7 +222,7 @@ fn build_controller(&mut self, _: &Session) -> driver::CompileController<'a> { let write_mode = self.write_mode; let mut control = driver::CompileController::basic(); 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 codemap = state.session.codemap(); let mut changes = fmt_ast(krate, codemap); @@ -244,7 +242,7 @@ fn build_controller(&mut self, _: &Session) -> driver::CompileController<'a> { } } } - }; + }); control }