core: Move locks, atomic rc to unstable::sync
This commit is contained in:
parent
4f44624415
commit
fa1d0477ed
11 changed files with 313 additions and 295 deletions
|
|
@ -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); }
|
||||
|
|
|
|||
|
|
@ -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); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue