File tree 8 files changed +11
-42
lines changed
8 files changed +11
-42
lines changed Original file line number Diff line number Diff line change 13
13
#[ allow( non_camel_case_types) ] ;
14
14
#[ deny( warnings) ] ;
15
15
16
- #[ cfg( stage0) ] extern mod green;
17
16
extern mod extra;
18
17
19
18
use std:: os;
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
- #[ cfg( stage0) ] extern mod green;
12
-
13
11
#[ cfg( rustpkg) ]
14
12
extern mod this = "rustpkg" ;
15
13
Original file line number Diff line number Diff line change 25
25
// NB this does *not* include globs, please keep it that way.
26
26
#[ feature( macro_rules) ] ;
27
27
28
- // Allow check-stage0-green for now
29
- #[ cfg( test, stage0) ] extern mod green;
30
-
31
28
use std:: os;
32
29
use std:: rt:: crate_map;
33
30
use std:: rt:: rtio;
Original file line number Diff line number Diff line change 19
19
#[ crate_type = "rlib" ] ;
20
20
#[ crate_type = "dylib" ] ;
21
21
22
- // Allow check-stage0-native for now
23
- #[ cfg( stage0, test) ] extern mod green;
24
-
25
22
// NB this crate explicitly does *not* allow glob imports, please seriously
26
23
// consider whether they're needed before adding that feature here (the
27
24
// answer is that you don't need them)
@@ -34,7 +31,7 @@ pub mod io;
34
31
pub mod task;
35
32
36
33
// XXX: this should not exist here
37
- #[ cfg( stage0) ]
34
+ #[ cfg( stage0, nativestart ) ]
38
35
#[ lang = "start" ]
39
36
pub fn lang_start( main : * u8 , argc : int , argv : * * u8 ) -> int {
40
37
use std:: cast;
Original file line number Diff line number Diff line change @@ -21,33 +21,6 @@ pub struct Cell<T> {
21
21
priv value : T ,
22
22
}
23
23
24
- #[ cfg( stage0) ]
25
- impl < T > Cell < T > {
26
- /// Creates a new `Cell` containing the given value.
27
- pub fn new ( value : T ) -> Cell < T > {
28
- Cell {
29
- value : value,
30
- }
31
- }
32
-
33
- /// Returns a copy of the contained value.
34
- #[ inline]
35
- pub fn get ( & self ) -> T {
36
- unsafe {
37
- :: cast:: transmute_copy ( & self . value )
38
- }
39
- }
40
-
41
- /// Sets the contained value.
42
- #[ inline]
43
- pub fn set ( & self , value : T ) {
44
- unsafe {
45
- * cast:: transmute_mut ( & self . value ) = value
46
- }
47
- }
48
- }
49
-
50
- #[ cfg( not( stage0) ) ]
51
24
impl < T : :: kinds:: Pod > Cell < T > {
52
25
/// Creates a new `Cell` containing the given value.
53
26
pub fn new ( value : T ) -> Cell < T > {
Original file line number Diff line number Diff line change @@ -38,9 +38,6 @@ use sync::atomics::{AtomicUint, SeqCst};
38
38
use task:: { TaskResult , TaskOpts } ;
39
39
use unstable:: finally:: Finally ;
40
40
41
- #[ cfg( stage0) ]
42
- pub use rt:: unwind:: begin_unwind;
43
-
44
41
// The Task struct represents all state associated with a rust
45
42
// task. There are at this point two primary "subtypes" of task,
46
43
// however instead of using a subtype we just have a "task_type" field
Original file line number Diff line number Diff line change @@ -188,8 +188,8 @@ extern "rust-intrinsic" {
188
188
/// Execute a breakpoint trap, for inspection by a debugger.
189
189
pub fn breakpoint ( ) ;
190
190
191
- # [ cfg ( not ( stage0 ) ) ] pub fn volatile_load < T > ( src : * T ) -> T ;
192
- # [ cfg ( not ( stage0 ) ) ] pub fn volatile_store < T > ( dst : * mut T , val : T ) ;
191
+ pub fn volatile_load < T > ( src : * T ) -> T ;
192
+ pub fn volatile_store < T > ( dst : * mut T , val : T ) ;
193
193
194
194
/// Atomic compare and exchange, sequentially consistent.
195
195
pub fn atomic_cxchg ( dst : & mut int , old : int , src : int ) -> int ;
Original file line number Diff line number Diff line change
1
+ S 2014-01-05 a6d3e57
2
+ freebsd-x86_64 ac21ea9537da2aaee35b7f3d2698b651dc3e8bd9
3
+ linux-i386 03e60be1f1b90dddd15f3597bc45ec8d9626b35d
4
+ linux-x86_64 aa8fbbacdb1d8a078f3a3fe3478dcbc506bd4090
5
+ macos-i386 48678a07106207de939f0f90389abb3170b20531
6
+ macos-x86_64 ec746585cb20d1f9edffec74f6ff8be6e93a75f7
7
+ winnt-i386 5c6e697a9a7946f9f15dbe7d5936cc9875ce7636
8
+
1
9
S 2013-12-27 a5fa1d9
2
10
freebsd-x86_64 7ed0226bb924d40bebda19e7bb0a7663233a600c
3
11
linux-i386 10c113aa925f9985b5111ded570b7db4a50b8569
You can’t perform that action at this time.
0 commit comments