Skip to content

Commit 3104ea0

Browse files
author
Keegan McAllister
committed
---
yaml --- r: 116605 b: refs/heads/snap-stage3 c: ffb2f12 h: refs/heads/master i: 116603: 325161c v: v3
1 parent f16204d commit 3104ea0

File tree

16 files changed

+99
-19
lines changed

16 files changed

+99
-19
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: bee4e6adac17f87b1cdc26ab69f8c0f5d82575a3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 6d15c6749c30d9077c6e12af3be64c5f68fafcff
4+
refs/heads/snap-stage3: ffb2f12ed89213f96561dfbece0751ac870e2c40
55
refs/heads/try: 009d898a9422ac04c1aa60c0e9aff3abc5fa4672
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/compiletest/compiletest.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,17 @@
1818

1919
extern crate test;
2020
extern crate getopts;
21-
#[phase(link, syntax)]
22-
extern crate log;
2321
extern crate green;
2422
extern crate rustuv;
2523

24+
#[cfg(stage0)]
25+
#[phase(syntax, link)]
26+
extern crate log;
27+
28+
#[cfg(not(stage0))]
29+
#[phase(plugin, link)]
30+
extern crate log;
31+
2632
extern crate regex;
2733

2834
use std::os;

branches/snap-stage3/src/liballoc/lib.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,14 @@
7070
#![no_std]
7171
#![feature(phase)]
7272

73+
#[cfg(stage0)]
7374
#[phase(syntax, link)]
7475
extern crate core;
76+
77+
#[cfg(not(stage0))]
78+
#[phase(plugin, link)]
79+
extern crate core;
80+
7581
extern crate libc;
7682

7783

@@ -80,8 +86,10 @@ extern crate libc;
8086
#[cfg(test)] extern crate debug;
8187
#[cfg(test)] extern crate sync;
8288
#[cfg(test)] extern crate native;
83-
#[cfg(test)] #[phase(syntax, link)] extern crate std;
84-
#[cfg(test)] #[phase(syntax, link)] extern crate log;
89+
#[cfg(test, stage0)] #[phase(syntax, link)] extern crate std;
90+
#[cfg(test, stage0)] #[phase(syntax, link)] extern crate log;
91+
#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate std;
92+
#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate log;
8593

8694
// Heaps provided for low-level allocation strategies
8795

branches/snap-stage3/src/libcollections/lib.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,24 @@
2323
#![feature(macro_rules, managed_boxes, default_type_params, phase, globs)]
2424
#![no_std]
2525

26-
#[phase(syntax, link)] extern crate core;
2726
extern crate alloc;
2827

28+
#[cfg(stage0)]
29+
#[phase(syntax, link)]
30+
extern crate core;
31+
32+
#[cfg(not(stage0))]
33+
#[phase(plugin, link)]
34+
extern crate core;
35+
2936
#[cfg(test)] extern crate native;
3037
#[cfg(test)] extern crate test;
3138
#[cfg(test)] extern crate debug;
32-
#[cfg(test)] #[phase(syntax, link)] extern crate std;
33-
#[cfg(test)] #[phase(syntax, link)] extern crate log;
39+
40+
#[cfg(test, stage0)] #[phase(syntax, link)] extern crate std;
41+
#[cfg(test, stage0)] #[phase(syntax, link)] extern crate log;
42+
#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate std;
43+
#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate log;
3444

3545
use core::prelude::*;
3646

branches/snap-stage3/src/libflate/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ Simple [DEFLATE][def]-based compression. This is a wrapper around the
2828
#![feature(phase)]
2929
#![deny(deprecated_owned_vector)]
3030

31-
#[cfg(test)] #[phase(syntax, link)] extern crate log;
31+
#[cfg(test, stage0)] #[phase(syntax, link)] extern crate log;
32+
#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate log;
3233

3334
extern crate libc;
3435

branches/snap-stage3/src/libgetopts/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@
9191
#![deny(deprecated_owned_vector)]
9292

9393
#[cfg(test)] extern crate debug;
94-
#[cfg(test)] #[phase(syntax, link)] extern crate log;
94+
#[cfg(test, stage0)] #[phase(syntax, link)] extern crate log;
95+
#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate log;
9596

9697
use std::cmp::PartialEq;
9798
use std::result::{Err, Ok};

branches/snap-stage3/src/librand/lib.rs

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,28 @@
2828
#![no_std]
2929
#![experimental]
3030

31+
#[cfg(stage0)]
3132
#[phase(syntax, link)]
3233
extern crate core;
3334

35+
#[cfg(not(stage0))]
36+
#[phase(plugin, link)]
37+
extern crate core;
38+
39+
#[cfg(test, stage0)]
40+
#[phase(syntax, link)] extern crate std;
41+
42+
#[cfg(test, stage0)]
43+
#[phase(syntax, link)] extern crate log;
44+
45+
#[cfg(test, not(stage0))]
46+
#[phase(plugin, link)] extern crate std;
47+
48+
#[cfg(test, not(stage0))]
49+
#[phase(plugin, link)] extern crate log;
50+
3451
#[cfg(test)] extern crate native;
3552
#[cfg(test)] extern crate debug;
36-
#[cfg(test)] #[phase(syntax, link)] extern crate std;
37-
#[cfg(test)] #[phase(syntax, link)] extern crate log;
3853

3954
use core::prelude::*;
4055

branches/snap-stage3/src/librustc/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,14 @@ extern crate sync;
4242
extern crate syntax;
4343
extern crate time;
4444

45+
#[cfg(stage0)]
4546
#[phase(syntax, link)]
4647
extern crate log;
4748

49+
#[cfg(not(stage0))]
50+
#[phase(plugin, link)]
51+
extern crate log;
52+
4853
pub mod middle {
4954
pub mod def;
5055
pub mod trans;

branches/snap-stage3/src/librustdoc/lib.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,21 @@
1919
extern crate debug;
2020
extern crate getopts;
2121
extern crate libc;
22-
#[phase(syntax, link)]
23-
extern crate log;
2422
extern crate rustc;
2523
extern crate serialize;
2624
extern crate sync;
2725
extern crate syntax;
2826
extern crate testing = "test";
2927
extern crate time;
3028

29+
#[cfg(stage0)]
30+
#[phase(syntax, link)]
31+
extern crate log;
32+
33+
#[cfg(not(stage0))]
34+
#[phase(plugin, link)]
35+
extern crate log;
36+
3137
use std::io;
3238
use std::io::{File, MemWriter};
3339
use std::str;

branches/snap-stage3/src/librustrt/lib.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,24 @@
1919
#![no_std]
2020
#![experimental]
2121

22+
#[cfg(stage0)]
2223
#[phase(syntax, link)]
2324
extern crate core;
25+
26+
#[cfg(not(stage0))]
27+
#[phase(plugin, link)]
28+
extern crate core;
29+
2430
extern crate alloc;
2531
extern crate libc;
2632
extern crate collections;
2733

2834
#[cfg(test)] extern crate realrustrt = "rustrt";
2935
#[cfg(test)] extern crate test;
3036
#[cfg(test)] extern crate native;
31-
#[cfg(test)] #[phase(syntax, link)] extern crate std;
37+
38+
#[cfg(test, stage0)] #[phase(syntax, link)] extern crate std;
39+
#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate std;
3240

3341
pub use self::util::{Stdio, Stdout, Stderr};
3442
pub use self::unwind::{begin_unwind, begin_unwind_fmt};

branches/snap-stage3/src/libserialize/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,15 @@ Core encoding and decoding interfaces.
2727
// test harness access
2828
#[cfg(test)]
2929
extern crate test;
30+
31+
#[cfg(stage0)]
3032
#[phase(syntax, link)]
3133
extern crate log;
3234

35+
#[cfg(not(stage0))]
36+
#[phase(plugin, link)]
37+
extern crate log;
38+
3339
pub use self::serialize::{Decoder, Encoder, Decodable, Encodable,
3440
DecoderHelpers, EncoderHelpers};
3541

branches/snap-stage3/src/libstd/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@
119119
#[cfg(test)] extern crate native;
120120
#[cfg(test)] extern crate green;
121121
#[cfg(test)] extern crate debug;
122-
#[cfg(test)] #[phase(syntax, link)] extern crate log;
122+
#[cfg(test, stage0)] #[phase(syntax, link)] extern crate log;
123+
#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate log;
123124

124125
extern crate alloc;
125126
extern crate core;

branches/snap-stage3/src/libsync/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@
2525

2626
#![deny(missing_doc)]
2727

28-
#[cfg(test)]
28+
#[cfg(test, stage0)]
2929
#[phase(syntax, link)] extern crate log;
3030

31+
#[cfg(test, not(stage0))]
32+
#[phase(plugin, link)] extern crate log;
33+
3134
extern crate alloc;
3235

3336
pub use comm::{DuplexStream, duplex};

branches/snap-stage3/src/libsyntax/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,15 @@ This API is completely unstable and subject to change.
3232

3333
extern crate serialize;
3434
extern crate term;
35+
36+
#[cfg(stage0)]
3537
#[phase(syntax, link)]
3638
extern crate log;
39+
40+
#[cfg(not(stage0))]
41+
#[phase(plugin, link)]
42+
extern crate log;
43+
3744
extern crate fmt_macros;
3845
extern crate debug;
3946

branches/snap-stage3/src/libterm/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252

5353
#![deny(missing_doc)]
5454

55-
#[phase(syntax, link)] extern crate log;
55+
#[cfg(stage0)] #[phase(syntax, link)] extern crate log;
56+
#[cfg(not(stage0))] #[phase(plugin, link)] extern crate log;
5657

5758
pub use terminfo::TerminfoTerminal;
5859
#[cfg(windows)]

branches/snap-stage3/src/libtime/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
#![deny(deprecated_owned_vector)]
2424

2525
#[cfg(test)] extern crate debug;
26-
#[cfg(test)] #[phase(syntax, link)] extern crate log;
26+
27+
#[cfg(test, stage0)] #[phase(syntax, link)] extern crate log;
28+
#[cfg(test, not(stage0))] #[phase(plugin, link)] extern crate log;
2729

2830
extern crate serialize;
2931
extern crate libc;

0 commit comments

Comments
 (0)