about summary refs log tree commit diff
path: root/src/libsyntax/print
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-09-10 18:28:00 -0700
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-09-10 18:28:47 -0700
commitf8b3eaae820f87a5d51fe382aef5e9f8256beb29 (patch)
treee3a4c5aa467410f26eb249d26aaa8899383d3b3a /src/libsyntax/print
parent6957af770bb92b71485f852beb9071733e5f178b (diff)
downloadrust-f8b3eaae820f87a5d51fe382aef5e9f8256beb29.tar.gz
rust-f8b3eaae820f87a5d51fe382aef5e9f8256beb29.zip
Make all moves explicit in libsyntax
Diffstat (limited to 'src/libsyntax/print')
-rw-r--r--src/libsyntax/print/pp.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libsyntax/print/pp.rs b/src/libsyntax/print/pp.rs
index 71eabb410bb..6ab936f1448 100644
--- a/src/libsyntax/print/pp.rs
+++ b/src/libsyntax/print/pp.rs
@@ -124,7 +124,7 @@ const size_infinity: int = 0xffff;
 fn mk_printer(out: io::Writer, linewidth: uint) -> printer {
     // Yes 3, it makes the ring buffers big enough to never
     // fall behind.
-    let n: uint = 3u * linewidth;
+    let n: uint = 3 * linewidth;
     debug!("mk_printer %u", linewidth);
     let token: ~[mut token] = vec::to_mut(vec::from_elem(n, EOF));
     let size: ~[mut int] = vec::to_mut(vec::from_elem(n, 0));
@@ -133,16 +133,16 @@ fn mk_printer(out: io::Writer, linewidth: uint) -> printer {
                buf_len: n,
                mut margin: linewidth as int,
                mut space: linewidth as int,
-               mut left: 0u,
-               mut right: 0u,
-               token: token,
-               size: size,
+               mut left: 0,
+               mut right: 0,
+               token: move token,
+               size: move size,
                mut left_total: 0,
                mut right_total: 0,
-               mut scan_stack: scan_stack,
+               mut scan_stack: move scan_stack,
                mut scan_stack_empty: true,
-               mut top: 0u,
-               mut bottom: 0u,
+               mut top: 0,
+               mut bottom: 0,
                print_stack: DVec(),
                mut pending_indentation: 0,
                mut token_tree_last_was_ident: false})