about summary refs log tree commit diff
path: root/src/libcore
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/libcore
parent6957af770bb92b71485f852beb9071733e5f178b (diff)
downloadrust-f8b3eaae820f87a5d51fe382aef5e9f8256beb29.tar.gz
rust-f8b3eaae820f87a5d51fe382aef5e9f8256beb29.zip
Make all moves explicit in libsyntax
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/extfmt.rs4
-rw-r--r--src/libcore/mutable.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/extfmt.rs b/src/libcore/extfmt.rs
index dd332fd8633..cd22b2c5c04 100644
--- a/src/libcore/extfmt.rs
+++ b/src/libcore/extfmt.rs
@@ -181,7 +181,7 @@ mod ct {
             let rest = copy next.flags;
             let j = next.next;
             let curr: ~[flag] = ~[f];
-            return {flags: vec::append(curr, rest), next: j};
+            return {flags: vec::append(move curr, rest), next: j};
         }
         let more = |x, copy s| more_(x, copy s, i, lim);
         let f = s[i];
@@ -195,7 +195,7 @@ mod ct {
                 more(flag_sign_always)
             } else if f == '#' as u8 {
                 more(flag_alternate)
-            } else { {flags: noflags, next: i} };
+            } else { {flags: move noflags, next: i} };
     }
     fn parse_count(s: ~str, i: uint, lim: uint)
         -> {count: count, next: uint} {
diff --git a/src/libcore/mutable.rs b/src/libcore/mutable.rs
index eca9ff6fada..354bb686fef 100644
--- a/src/libcore/mutable.rs
+++ b/src/libcore/mutable.rs
@@ -34,7 +34,7 @@ fn unwrap<T>(+m: Mut<T>) -> T {
     // Borrowck should prevent us from calling unwrap while the value
     // is in use, as that would be a move from a borrowed value.
     assert (m.mode as uint) == (ReadOnly as uint);
-    let Data {value, mode: _} = m;
+    let Data {value, mode: _} <- m;
     return move value;
 }