File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
branches/try2/src/test/run-pass Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
5
5
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 550c347d7b9fbeb10dcf039f0e7e0c16de83dc4a
8
+ refs/heads/try2: d743b8831e6dc5b390af112cc23159d667cf583b
9
9
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- use std:: unstable ;
11
+ use std:: rt ;
12
12
13
13
pub fn main ( ) {
14
14
unsafe {
15
- let x = Some ( unstable :: sync :: Exclusive :: new ( true ) ) ;
15
+ let x = Some ( rt :: exclusive :: Exclusive :: new ( true ) ) ;
16
16
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 ( ) ) ;
19
19
} ,
20
20
_ => fail ! ( )
21
21
}
Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
12
- use std:: unstable ;
12
+ use std:: rt ;
13
13
14
14
struct Point { x : int , y : int , z : int }
15
15
16
16
fn f ( p : & mut Point ) { p. z = 13 ; }
17
17
18
18
pub fn main ( ) {
19
19
unsafe {
20
- let x = Some ( unstable :: sync :: Exclusive :: new ( true ) ) ;
20
+ let x = Some ( rt :: exclusive :: Exclusive :: new ( true ) ) ;
21
21
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 ( ) ) ;
24
24
} ,
25
25
_ => fail ! ( )
26
26
}
You can’t perform that action at this time.
0 commit comments