diff options
| author | Alex HotShot Newman <alex.newman@wandisco.com> | 2015-05-20 11:20:15 -0700 |
|---|---|---|
| committer | Alex HotShot Newman <alex.newman@wandisco.com> | 2015-05-20 11:20:15 -0700 |
| commit | 2fbb445b671405e40aaf9eeaaecdd08340d67fd9 (patch) | |
| tree | 137dc1ebe16e53cc6476fb11a33f297f01117dbe /src | |
| parent | e38a672fe0c540a94e167262ca71af2e02b0a4bb (diff) | |
Remove old box syntax
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 6 |
1 files 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 @@ impl<'a> CompilerCalls<'a> for RustFmtCalls { 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 @@ impl<'a> CompilerCalls<'a> for RustFmtCalls { } } } - }; + }); control } |
