core: Move locks, atomic rc to unstable::sync

This commit is contained in:
Brian Anderson 2013-05-09 17:36:45 -07:00
parent 4f44624415
commit fa1d0477ed
11 changed files with 313 additions and 295 deletions

View file

@ -9,7 +9,7 @@
// except according to those terms.
fn main() {
let x = Some(unstable::exclusive(false));
let x = Some(unstable::sync::exclusive(false));
match x {
Some(copy z) => { //~ ERROR copying a value of non-copyable type
do z.with |b| { assert!(!*b); }

View file

@ -9,7 +9,7 @@
// except according to those terms.
pub fn main() {
let x = Some(unstable::exclusive(true));
let x = Some(unstable::sync::exclusive(true));
match x {
Some(ref z) if z.with(|b| *b) => {
do z.with |b| { assert!(*b); }