Change concurrency primitives to standard naming conventions
To be more specific: `UPPERCASETYPE` was changed to `UppercaseType` `type_new` was changed to `Type::new` `type_function(value)` was changed to `value.method()`
This commit is contained in:
@@ -2563,9 +2563,9 @@ mod tests {
|
||||
#[test]
|
||||
fn test_swap_remove_noncopyable() {
|
||||
// Tests that we don't accidentally run destructors twice.
|
||||
let mut v = ~[::unstable::sync::exclusive(()),
|
||||
::unstable::sync::exclusive(()),
|
||||
::unstable::sync::exclusive(())];
|
||||
let mut v = ~[::unstable::sync::Exclusive::new(()),
|
||||
::unstable::sync::Exclusive::new(()),
|
||||
::unstable::sync::Exclusive::new(())];
|
||||
let mut _e = v.swap_remove(0);
|
||||
assert_eq!(v.len(), 2);
|
||||
_e = v.swap_remove(1);
|
||||
|
||||
Reference in New Issue
Block a user