about summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2014-04-25 01:08:02 -0700
committerBrian Anderson <banderson@mozilla.com>2014-05-02 23:00:58 -0700
commita5be12ce7e88c1d28de1c98215991127d1e765f0 (patch)
tree30f160f43a354c79a6795c638c3302d234ec0b52 /src/libsyntax/print
parenta67307e2a56b0d6bc57c3dc18f58e79744e98434 (diff)
downloadrust-a5be12ce7e88c1d28de1c98215991127d1e765f0.tar.gz
rust-a5be12ce7e88c1d28de1c98215991127d1e765f0.zip
Replace most ~exprs with 'box'. #11779
Diffstat (limited to 'src/libsyntax/print')
-rw-r--r--src/libsyntax/print/pprust.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/print/pprust.rs b/src/libsyntax/print/pprust.rs
index afb66ab8317..f5fe92c3e67 100644
--- a/src/libsyntax/print/pprust.rs
+++ b/src/libsyntax/print/pprust.rs
@@ -132,7 +132,7 @@ pub fn print_crate<'a>(cm: &'a CodeMap,
 }
 
 pub fn to_str(f: |&mut State| -> IoResult<()>) -> ~str {
-    let mut s = rust_printer(~MemWriter::new());
+    let mut s = rust_printer(box MemWriter::new());
     f(&mut s).unwrap();
     eof(&mut s.s).unwrap();
     unsafe {