]> git.lizzy.rs Git - rust.git/commitdiff
test: Fix fallout of previous changes
authorAlex Crichton <alex@alexcrichton.com>
Wed, 4 Jun 2014 07:01:08 +0000 (00:01 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 7 Jun 2014 05:19:57 +0000 (22:19 -0700)
src/test/run-pass/match-ref-binding-in-guard-3256.rs
src/test/run-pass/writealias.rs

index de4da6e3b06d7aca0a707cf3447f3508ca2374fd..4fdbdf8f5c7ae58ea08a0036d683e2aede790bff 100644 (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!()
         }
index 8142cafd89e9195b177d3beaee93fcd7b9f484c4..f2d29c97f155e0c4329a601194afc3e4ba374f7a 100644 (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 @@ struct Point {x: int, y: int, z: int}
 
 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!()
         }