From a07ea73bdbc023f80efe809388ed9299ba76bcb8 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Mon, 10 Sep 2012 13:16:34 -0700 Subject: Make moves explicit in task; also make option::unwrap take its argument by move --- src/libcore/vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libcore/vec.rs') diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 0907041809a..e242f619ccd 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -1799,7 +1799,7 @@ mod unsafe { let mut box2 = None; box2 <-> box; rusti::move_val_init(*ptr::mut_offset(p, i), - option::unwrap(move box2)); + option::unwrap(box2)); } } -- cgit 1.4.1-3-g733a5