Make moves explicit in task; also make option::unwrap take its argument by move

This commit is contained in:
Tim Chevalier
2012-09-10 13:16:34 -07:00
parent 04f1763409
commit a07ea73bdb
3 changed files with 58 additions and 55 deletions

View File

@@ -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));
}
}