File tree Expand file tree Collapse file tree 8 files changed +10
-41
lines changed Expand file tree Collapse file tree 8 files changed +10
-41
lines changed Original file line number Diff line number Diff line change 1313#[ allow( non_camel_case_types) ] ;
1414#[ deny( warnings) ] ;
1515
16- #[ cfg( stage0) ] extern mod green;
1716extern mod extra;
1817
1918use std:: os;
Original file line number Diff line number Diff line change 88// option. This file may not be copied, modified, or distributed
99// except according to those terms.
1010
11- #[ cfg( stage0) ] extern mod green;
12-
1311#[ cfg( rustpkg) ]
1412extern mod this = "rustpkg" ;
1513
Original file line number Diff line number Diff line change 2525// NB this does *not* include globs, please keep it that way.
2626#[ feature( macro_rules) ] ;
2727
28- // Allow check-stage0-green for now
29- #[ cfg( test, stage0) ] extern mod green;
30-
3128use std:: os;
3229use std:: rt:: crate_map;
3330use std:: rt:: rtio;
Original file line number Diff line number Diff line change 1919#[ crate_type = "rlib" ] ;
2020#[ crate_type = "dylib" ] ;
2121
22- // Allow check-stage0-native for now
23- #[ cfg( stage0, test) ] extern mod green;
24-
2522// NB this crate explicitly does *not* allow glob imports, please seriously
2623// consider whether they're needed before adding that feature here (the
2724// answer is that you don't need them)
Original file line number Diff line number Diff line change @@ -21,33 +21,6 @@ pub struct Cell<T> {
2121 priv value : T ,
2222}
2323
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) ) ]
5124impl < T : :: kinds:: Pod > Cell < T > {
5225 /// Creates a new `Cell` containing the given value.
5326 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};
3838use task:: { TaskResult , TaskOpts } ;
3939use unstable:: finally:: Finally ;
4040
41- #[ cfg( stage0) ]
42- pub use rt:: unwind:: begin_unwind;
43-
4441// The Task struct represents all state associated with a rust
4542// task. There are at this point two primary "subtypes" of task,
4643// 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" {
188188 /// Execute a breakpoint trap, for inspection by a debugger.
189189 pub fn breakpoint ( ) ;
190190
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 ) ;
193193
194194 /// Atomic compare and exchange, sequentially consistent.
195195 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+
19S 2013-12-27 a5fa1d9
210 freebsd-x86_64 7ed0226bb924d40bebda19e7bb0a7663233a600c
311 linux-i386 10c113aa925f9985b5111ded570b7db4a50b8569
You can’t perform that action at this time.
0 commit comments