From 60be2f52d2434dfbf2df7728454d572d76f58bf8 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Wed, 31 Dec 2014 20:43:46 -0800 Subject: Replace #[phase] with #[plugin] / #[macro_use] / #[no_link] --- src/libstd/lib.rs | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/libstd') diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index abe968849c2..3eda6d3374e 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -120,12 +120,30 @@ #![macro_reexport(assert, assert_eq, debug_assert, debug_assert_eq, unreachable, unimplemented, write, writeln, vec)] -#[cfg(test)] #[phase(plugin, link)] extern crate log; +#[cfg(all(test, stage0))] +#[phase(plugin, link)] +extern crate log; + +#[cfg(all(test, not(stage0)))] +#[macro_use] +extern crate log; +#[cfg(stage0)] #[phase(plugin, link)] extern crate core; + +#[cfg(not(stage0))] +#[macro_use] +extern crate core; + +#[cfg(stage0)] #[phase(plugin, link)] extern crate "collections" as core_collections; + +#[cfg(not(stage0))] +#[macro_use] +extern crate "collections" as core_collections; + extern crate "rand" as core_rand; extern crate alloc; extern crate unicode; -- cgit 1.4.1-3-g733a5