test: Fix fallout of previous changes

This commit is contained in:
Alex Crichton 2014-06-04 00:01:08 -07:00
parent 550c347d7b
commit d743b8831e
2 changed files with 8 additions and 8 deletions

View File

@ -8,14 +8,14 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
use std::unstable;
use std::rt;
pub fn main() {
unsafe {
let x = Some(unstable::sync::Exclusive::new(true));
let x = Some(rt::exclusive::Exclusive::new(true));
match x {
Some(ref z) if z.with(|b| *b) => {
z.with(|b| assert!(*b));
Some(ref z) if *z.lock() => {
assert!(*z.lock());
},
_ => fail!()
}

View File

@ -9,7 +9,7 @@
// except according to those terms.
use std::unstable;
use std::rt;
struct Point {x: int, y: int, z: int}
@ -17,10 +17,10 @@ fn f(p: &mut Point) { p.z = 13; }
pub fn main() {
unsafe {
let x = Some(unstable::sync::Exclusive::new(true));
let x = Some(rt::exclusive::Exclusive::new(true));
match x {
Some(ref z) if z.with(|b| *b) => {
z.with(|b| assert!(*b));
Some(ref z) if *z.lock() => {
assert!(*z.lock());
},
_ => fail!()
}