diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-09-10 18:28:00 -0700 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-09-10 18:28:47 -0700 |
| commit | f8b3eaae820f87a5d51fe382aef5e9f8256beb29 (patch) | |
| tree | e3a4c5aa467410f26eb249d26aaa8899383d3b3a /src/libcore/mutable.rs | |
| parent | 6957af770bb92b71485f852beb9071733e5f178b (diff) | |
| download | rust-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.rs | 2 |
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; } |
