1
Fork 0

Use phase(plugin) in bootstrap crates

Do this to avoid warnings on post-stage0 builds.
This commit is contained in:
Keegan McAllister 2014-05-24 21:15:16 -07:00
parent 6d15c6749c
commit ffb2f12ed8
15 changed files with 98 additions and 18 deletions

View file

@ -18,11 +18,17 @@
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;

View file

@ -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

View file

@ -23,14 +23,24 @@
#![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::*;

View file

@ -28,7 +28,8 @@ Simple [DEFLATE][def]-based compression. This is a wrapper around the
#![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;

View file

@ -91,7 +91,8 @@
#![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};

View file

@ -28,13 +28,28 @@
#![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::*;

View file

@ -42,9 +42,14 @@ extern crate sync;
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;

View file

@ -19,8 +19,6 @@
extern crate debug;
extern crate getopts;
extern crate libc;
#[phase(syntax, link)]
extern crate log;
extern crate rustc;
extern crate serialize;
extern crate sync;
@ -28,6 +26,14 @@ extern crate syntax;
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;

View file

@ -19,8 +19,14 @@
#![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;
@ -28,7 +34,9 @@ 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};

View file

@ -27,9 +27,15 @@ Core encoding and decoding interfaces.
// 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};

View file

@ -119,7 +119,8 @@
#[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;

View file

@ -25,9 +25,12 @@
#![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};

View file

@ -32,8 +32,15 @@ This API is completely unstable and subject to change.
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;

View file

@ -52,7 +52,8 @@
#![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)]

View file

@ -23,7 +23,9 @@
#![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;