diff options
| author | Brian Anderson <banderson@mozilla.com> | 2013-05-09 17:36:45 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2013-05-13 12:13:56 -0700 |
| commit | fa1d0477edab6fa800eabd951d88f6bd12fbcfff (patch) | |
| tree | 1b4a07e68091f4c23e2422aa5662c1b5f3dd9c14 /src/libcore/vec.rs | |
| parent | 4f446244155984a6674f69ab6e9d49704ab0c20d (diff) | |
| download | rust-fa1d0477edab6fa800eabd951d88f6bd12fbcfff.tar.gz rust-fa1d0477edab6fa800eabd951d88f6bd12fbcfff.zip | |
core: Move locks, atomic rc to unstable::sync
Diffstat (limited to 'src/libcore/vec.rs')
| -rw-r--r-- | src/libcore/vec.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 604f0297b64..e56144ebc0a 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -3298,8 +3298,9 @@ mod tests { #[test] fn test_swap_remove_noncopyable() { // Tests that we don't accidentally run destructors twice. - let mut v = ~[::unstable::exclusive(()), ::unstable::exclusive(()), - ::unstable::exclusive(())]; + let mut v = ~[::unstable::sync::exclusive(()), + ::unstable::sync::exclusive(()), + ::unstable::sync::exclusive(())]; let mut _e = v.swap_remove(0); assert!(v.len() == 2); _e = v.swap_remove(1); |
