diff options
Diffstat (limited to 'src/libcore/lib.rs')
| -rw-r--r-- | src/libcore/lib.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index 238644c4a26..56fb4c71a6a 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -60,8 +60,10 @@ html_playground_url = "http://play.rust-lang.org/")] #![doc(test(no_crate_inject))] -#![feature(no_std)] -#![no_std] +#![cfg_attr(stage0, feature(no_std))] +#![cfg_attr(stage0, no_std)] +#![cfg_attr(not(stage0), feature(no_core))] +#![cfg_attr(not(stage0), no_core)] #![allow(raw_pointer_derive)] #![deny(missing_docs)] @@ -168,6 +170,7 @@ mod tuple; // compiling the core library when it's compiling this library, so it expands // all references to `::core::$foo` #[doc(hidden)] +#[cfg(stage0)] mod core { pub use intrinsics; // derive(PartialOrd) pub use fmt; // format_args! |
