about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorKeegan McAllister <kmcallister@mozilla.com>2014-05-24 21:15:16 -0700
committerKeegan McAllister <kmcallister@mozilla.com>2014-06-09 14:29:30 -0700
commitffb2f12ed89213f96561dfbece0751ac870e2c40 (patch)
tree58e38537d628abdb2a9a3e2cfb6e6b84817a7ead /src/liballoc
parent6d15c6749c30d9077c6e12af3be64c5f68fafcff (diff)
downloadrust-ffb2f12ed89213f96561dfbece0751ac870e2c40.tar.gz
rust-ffb2f12ed89213f96561dfbece0751ac870e2c40.zip
Use phase(plugin) in bootstrap crates
Do this to avoid warnings on post-stage0 builds.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/lib.rs12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/liballoc/lib.rs b/src/liballoc/lib.rs
index ca7ed6f4ba0..7e2c9a75fad 100644
--- a/src/liballoc/lib.rs
+++ b/src/liballoc/lib.rs
@@ -70,8 +70,14 @@
 #![no_std]
 #![feature(phase)]
 
+#[cfg(stage0)]
 #[phase(syntax, link)]
 extern crate core;
+
+#[cfg(not(stage0))]
+#[phase(plugin, link)]
+extern crate core;
+
 extern crate libc;
 
 
@@ -80,8 +86,10 @@ extern crate libc;
 #[cfg(test)] extern crate debug;
 #[cfg(test)] extern crate sync;
 #[cfg(test)] extern crate native;
-#[cfg(test)] #[phase(syntax, link)] extern crate std;
-#[cfg(test)] #[phase(syntax, link)] extern crate log;
+#[cfg(test, stage0)] #[phase(syntax, link)] extern crate std;
+#[cfg(test, stage0)] #[phase(syntax, link)] extern crate log;
+#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate std;
+#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate log;
 
 // Heaps provided for low-level allocation strategies