File tree 9 files changed +2
-68
lines changed
9 files changed +2
-68
lines changed 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
- // Transitional -- needs snapshot
12
- #[ allow( structural_records) ] ;
13
-
14
11
use either:: { Either , Left , Right } ;
15
12
use kinds:: Owned ;
16
13
use option;
Original file line number Diff line number Diff line change @@ -227,10 +227,6 @@ pub const debug : u32 = 4_u32;
227
227
228
228
// The runtime interface used by the compiler
229
229
#[cfg(notest)] pub mod rt;
230
- // The runtime and compiler interface to fmt!
231
- #[cfg(stage0)]
232
- #[path = "private/extfmt.rs"]
233
- pub mod extfmt;
234
230
// Private APIs
235
231
pub mod private;
236
232
Original file line number Diff line number Diff line change @@ -82,8 +82,6 @@ bounded and unbounded protocols allows for less code duplication.
82
82
83
83
*/
84
84
85
- #[ allow( structural_records) ] ; // Macros -- needs another snapshot
86
-
87
85
use cmp:: Eq ;
88
86
use cast:: { forget, reinterpret_cast, transmute} ;
89
87
use cell:: Cell ;
Original file line number Diff line number Diff line change @@ -26,33 +26,10 @@ do || {
26
26
use ops:: Drop ;
27
27
use task:: { spawn, failing} ;
28
28
29
- #[ cfg( stage0) ]
30
- pub trait Finally < T > {
31
- fn finally ( & self , +dtor : & fn ( ) ) -> T ;
32
- }
33
-
34
- #[ cfg( stage1) ]
35
- #[ cfg( stage2) ]
36
- #[ cfg( stage3) ]
37
29
pub trait Finally < T > {
38
30
fn finally ( & self , dtor : & fn ( ) ) -> T ;
39
31
}
40
32
41
- #[ cfg( stage0) ]
42
- impl < T > Finally < T > for & fn ( ) -> T {
43
- // FIXME #4518: Should not require a mode here
44
- fn finally ( & self , +dtor : & fn ( ) ) -> T {
45
- let _d = Finallyalizer {
46
- dtor : dtor
47
- } ;
48
-
49
- ( * self ) ( )
50
- }
51
- }
52
-
53
- #[ cfg( stage1) ]
54
- #[ cfg( stage2) ]
55
- #[ cfg( stage3) ]
56
33
impl < T > Finally < T > for & fn ( ) -> T {
57
34
fn finally ( & self , dtor : & fn ( ) ) -> T {
58
35
let _d = Finallyalizer {
Original file line number Diff line number Diff line change 10
10
11
11
#[ doc( hidden) ] ; // FIXME #3538
12
12
13
- #[ legacy_modes] ; // tjc: remove after snapshot
14
- #[ allow( deprecated_mode) ] ;
15
-
16
13
use cast:: reinterpret_cast;
17
14
use ptr:: offset;
18
15
use sys:: size_of;
Original file line number Diff line number Diff line change @@ -553,10 +553,7 @@ impl get_node_info for ast::blk {
553
553
}
554
554
}
555
555
556
- // XXX: Work around a trait parsing bug. remove after snapshot
557
- pub type optional_boxed_ast_expr = Option < @ast:: expr > ;
558
-
559
- impl get_node_info for optional_boxed_ast_expr {
556
+ impl get_node_info for Option < @ast:: expr > {
560
557
fn info ( & self ) -> Option < NodeInfo > {
561
558
self . chain_ref ( |s| s. info ( ) )
562
559
}
Original file line number Diff line number Diff line change @@ -46,34 +46,10 @@ extern mod rustrt {
46
46
// colons. This way if some test runner wants to arrange the tests
47
47
// hierarchically it may.
48
48
49
- #[ cfg( stage0) ]
50
- pub enum TestName {
51
- // Stage0 doesn't understand sendable &static/str yet
52
- StaticTestName ( & static/[ u8 ] ) ,
53
- DynTestName ( ~str )
54
- }
55
-
56
- #[ cfg( stage0) ]
57
- impl ToStr for TestName {
58
- pure fn to_str ( & self ) -> ~str {
59
- match self {
60
- & StaticTestName ( s) => str:: from_bytes ( s) ,
61
- & DynTestName ( s) => s. to_str ( )
62
- }
63
- }
64
- }
65
-
66
- #[ cfg( stage1) ]
67
- #[ cfg( stage2) ]
68
- #[ cfg( stage3) ]
69
49
pub enum TestName {
70
50
StaticTestName ( & static /str ) ,
71
51
DynTestName ( ~str )
72
52
}
73
-
74
- #[ cfg( stage1) ]
75
- #[ cfg( stage2) ]
76
- #[ cfg( stage3) ]
77
53
impl ToStr for TestName {
78
54
pure fn to_str ( & self ) -> ~str {
79
55
match self {
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
- // NOTE this is a pretty-printer bug that I fixed, but it's
12
- // not in the snapshot yet. After a new snapshot, can un-xfail
13
- // xfail-pretty
11
+ // xfail-test
14
12
// pp-exact
15
13
struct Thing {
16
14
x : int ,
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
- // tjc: un-xfail after snapshot
12
11
// xfail-test
13
- // xfail-pretty
14
12
15
13
// Protocols
16
14
proto ! foo (
You can’t perform that action at this time.
0 commit comments