Skip to content

Commit d743b88

Browse files
committed
test: Fix fallout of previous changes
1 parent 550c347 commit d743b88

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/test/run-pass/match-ref-binding-in-guard-3256.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use std::unstable;
11+
use std::rt;
1212

1313
pub fn main() {
1414
unsafe {
15-
let x = Some(unstable::sync::Exclusive::new(true));
15+
let x = Some(rt::exclusive::Exclusive::new(true));
1616
match x {
17-
Some(ref z) if z.with(|b| *b) => {
18-
z.with(|b| assert!(*b));
17+
Some(ref z) if *z.lock() => {
18+
assert!(*z.lock());
1919
},
2020
_ => fail!()
2121
}

src/test/run-pass/writealias.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
// except according to those terms.
1010

1111

12-
use std::unstable;
12+
use std::rt;
1313

1414
struct Point {x: int, y: int, z: int}
1515

1616
fn f(p: &mut Point) { p.z = 13; }
1717

1818
pub fn main() {
1919
unsafe {
20-
let x = Some(unstable::sync::Exclusive::new(true));
20+
let x = Some(rt::exclusive::Exclusive::new(true));
2121
match x {
22-
Some(ref z) if z.with(|b| *b) => {
23-
z.with(|b| assert!(*b));
22+
Some(ref z) if *z.lock() => {
23+
assert!(*z.lock());
2424
},
2525
_ => fail!()
2626
}

0 commit comments

Comments
 (0)