about summary refs log tree commit diff
path: root/src/libcore/mutable.rs
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/mutable.rs
parent6957af770bb92b71485f852beb9071733e5f178b (diff)
downloadrust-f8b3eaae820f87a5d51fe382aef5e9f8256beb29.tar.gz
rust-f8b3eaae820f87a5d51fe382aef5e9f8256beb29.zip
Make all moves explicit in libsyntax
Diffstat (limited to 'src/libcore/mutable.rs')
-rw-r--r--src/libcore/mutable.rs2
1 files changed, 1 insertions, 1 deletions
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;
 }