Do this to avoid warnings on post-stage0 builds.
extern crate test;
extern crate getopts;
-#[phase(link, syntax)]
-extern crate log;
extern crate green;
extern crate rustuv;
+#[cfg(stage0)]
+#[phase(syntax, link)]
+extern crate log;
+
+#[cfg(not(stage0))]
+#[phase(plugin, link)]
+extern crate log;
+
extern crate regex;
use std::os;
#![no_std]
#![feature(phase)]
+#[cfg(stage0)]
#[phase(syntax, link)]
extern crate core;
+
+#[cfg(not(stage0))]
+#[phase(plugin, link)]
+extern crate core;
+
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
#![feature(macro_rules, managed_boxes, default_type_params, phase, globs)]
#![no_std]
-#[phase(syntax, link)] extern crate core;
extern crate alloc;
+#[cfg(stage0)]
+#[phase(syntax, link)]
+extern crate core;
+
+#[cfg(not(stage0))]
+#[phase(plugin, link)]
+extern crate core;
+
#[cfg(test)] extern crate native;
#[cfg(test)] extern crate test;
#[cfg(test)] extern crate debug;
-#[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;
use core::prelude::*;
#![feature(phase)]
#![deny(deprecated_owned_vector)]
-#[cfg(test)] #[phase(syntax, link)] extern crate log;
+#[cfg(test, stage0)] #[phase(syntax, link)] extern crate log;
+#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate log;
extern crate libc;
#![deny(deprecated_owned_vector)]
#[cfg(test)] extern crate debug;
-#[cfg(test)] #[phase(syntax, link)] extern crate log;
+#[cfg(test, stage0)] #[phase(syntax, link)] extern crate log;
+#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate log;
use std::cmp::PartialEq;
use std::result::{Err, Ok};
#![no_std]
#![experimental]
+#[cfg(stage0)]
#[phase(syntax, link)]
extern crate core;
+#[cfg(not(stage0))]
+#[phase(plugin, link)]
+extern crate core;
+
+#[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;
+
#[cfg(test)] extern crate native;
#[cfg(test)] extern crate debug;
-#[cfg(test)] #[phase(syntax, link)] extern crate std;
-#[cfg(test)] #[phase(syntax, link)] extern crate log;
use core::prelude::*;
extern crate syntax;
extern crate time;
+#[cfg(stage0)]
#[phase(syntax, link)]
extern crate log;
+#[cfg(not(stage0))]
+#[phase(plugin, link)]
+extern crate log;
+
pub mod middle {
pub mod def;
pub mod trans;
extern crate debug;
extern crate getopts;
extern crate libc;
-#[phase(syntax, link)]
-extern crate log;
extern crate rustc;
extern crate serialize;
extern crate sync;
extern crate testing = "test";
extern crate time;
+#[cfg(stage0)]
+#[phase(syntax, link)]
+extern crate log;
+
+#[cfg(not(stage0))]
+#[phase(plugin, link)]
+extern crate log;
+
use std::io;
use std::io::{File, MemWriter};
use std::str;
#![no_std]
#![experimental]
+#[cfg(stage0)]
#[phase(syntax, link)]
extern crate core;
+
+#[cfg(not(stage0))]
+#[phase(plugin, link)]
+extern crate core;
+
extern crate alloc;
extern crate libc;
extern crate collections;
#[cfg(test)] extern crate realrustrt = "rustrt";
#[cfg(test)] extern crate test;
#[cfg(test)] extern crate native;
-#[cfg(test)] #[phase(syntax, link)] extern crate std;
+
+#[cfg(test, stage0)] #[phase(syntax, link)] extern crate std;
+#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate std;
pub use self::util::{Stdio, Stdout, Stderr};
pub use self::unwind::{begin_unwind, begin_unwind_fmt};
// test harness access
#[cfg(test)]
extern crate test;
+
+#[cfg(stage0)]
#[phase(syntax, link)]
extern crate log;
+#[cfg(not(stage0))]
+#[phase(plugin, link)]
+extern crate log;
+
pub use self::serialize::{Decoder, Encoder, Decodable, Encodable,
DecoderHelpers, EncoderHelpers};
#[cfg(test)] extern crate native;
#[cfg(test)] extern crate green;
#[cfg(test)] extern crate debug;
-#[cfg(test)] #[phase(syntax, link)] extern crate log;
+#[cfg(test, stage0)] #[phase(syntax, link)] extern crate log;
+#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate log;
extern crate alloc;
extern crate core;
#![deny(missing_doc)]
-#[cfg(test)]
+#[cfg(test, stage0)]
#[phase(syntax, link)] extern crate log;
+#[cfg(test, not(stage0))]
+#[phase(plugin, link)] extern crate log;
+
extern crate alloc;
pub use comm::{DuplexStream, duplex};
extern crate serialize;
extern crate term;
+
+#[cfg(stage0)]
#[phase(syntax, link)]
extern crate log;
+
+#[cfg(not(stage0))]
+#[phase(plugin, link)]
+extern crate log;
+
extern crate fmt_macros;
extern crate debug;
#![deny(missing_doc)]
-#[phase(syntax, link)] extern crate log;
+#[cfg(stage0)] #[phase(syntax, link)] extern crate log;
+#[cfg(not(stage0))] #[phase(plugin, link)] extern crate log;
pub use terminfo::TerminfoTerminal;
#[cfg(windows)]
#![deny(deprecated_owned_vector)]
#[cfg(test)] extern crate debug;
-#[cfg(test)] #[phase(syntax, link)] extern crate log;
+
+#[cfg(test, stage0)] #[phase(syntax, link)] extern crate log;
+#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate log;
extern crate serialize;
extern crate libc;