Skip to content

Commit e258e60

Browse files
committed
---
yaml --- r: 51309 b: refs/heads/incoming c: cb37d09 h: refs/heads/master i: 51307: 5bd2628 v: v3
1 parent ecb368e commit e258e60

File tree

4 files changed

+17
-25
lines changed

4 files changed

+17
-25
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 8eb2bab100b42f0ba751552d8eff00eb2134c55a
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/incoming: 82f190355b07f941bcc98408ea84c02b629991cf
9+
refs/heads/incoming: cb37d09f50e6e1ac50eee35b0874167f0119c114
1010
refs/heads/dist-snap: 8b98e5a296d95c5e832db0756828e5bec31c6f50
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/libcore/core.rc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,17 @@ pub use clone::Clone;
216216
* more-verbosity. Error is the bottom level, default logging level is
217217
* warn-and-below.
218218
*/
219-
220219
/// The error log level
220+
#[cfg(stage0)]
221221
pub const error : u32 = 1_u32;
222222
/// The warning log level
223+
#[cfg(stage0)]
223224
pub const warn : u32 = 2_u32;
224225
/// The info log level
226+
#[cfg(stage0)]
225227
pub const info : u32 = 3_u32;
226228
/// The debug log level
229+
#[cfg(stage0)]
227230
pub const debug : u32 = 4_u32;
228231

229232

@@ -251,9 +254,13 @@ pub mod rt;
251254
// can be resolved within libcore.
252255
#[doc(hidden)] // FIXME #3538
253256
pub mod core {
257+
#[cfg(stage0)]
254258
pub const error : u32 = 1_u32;
259+
#[cfg(stage0)]
255260
pub const warn : u32 = 2_u32;
261+
#[cfg(stage0)]
256262
pub const info : u32 = 3_u32;
263+
#[cfg(stage0)]
257264
pub const debug : u32 = 4_u32;
258265

259266
pub use cmp;

branches/incoming/src/libcore/prelude.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,3 @@ pub use u64;
8282
pub use u8;
8383
pub use uint;
8484
pub use vec;
85-
86-
/*
87-
* Export the log levels as global constants. Higher levels mean
88-
* more-verbosity. Error is the bottom level, default logging level is
89-
* warn-and-below.
90-
*/
91-
92-
/// The error log level
93-
pub const error : u32 = 1_u32;
94-
/// The warning log level
95-
pub const warn : u32 = 2_u32;
96-
/// The info log level
97-
pub const info : u32 = 3_u32;
98-
/// The debug log level
99-
pub const debug : u32 = 4_u32;

branches/incoming/src/libsyntax/ext/expand.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -411,34 +411,34 @@ pub fn core_macros() -> ~str {
411411

412412
macro_rules! error (
413413
($arg:expr) => (
414-
log(::core::error, fmt!( \"%?\", $arg ))
414+
log(1u32, fmt!( \"%?\", $arg ))
415415
);
416416
($( $arg:expr ),+) => (
417-
log(::core::error, fmt!( $($arg),+ ))
417+
log(1u32, fmt!( $($arg),+ ))
418418
)
419419
)
420420
macro_rules! warn (
421421
($arg:expr) => (
422-
log(::core::warn, fmt!( \"%?\", $arg ))
422+
log(2u32, fmt!( \"%?\", $arg ))
423423
);
424424
($( $arg:expr ),+) => (
425-
log(::core::warn, fmt!( $($arg),+ ))
425+
log(2u32, fmt!( $($arg),+ ))
426426
)
427427
)
428428
macro_rules! info (
429429
($arg:expr) => (
430-
log(::core::info, fmt!( \"%?\", $arg ))
430+
log(3u32, fmt!( \"%?\", $arg ))
431431
);
432432
($( $arg:expr ),+) => (
433-
log(::core::info, fmt!( $($arg),+ ))
433+
log(3u32, fmt!( $($arg),+ ))
434434
)
435435
)
436436
macro_rules! debug (
437437
($arg:expr) => (
438-
log(::core::debug, fmt!( \"%?\", $arg ))
438+
log(4u32, fmt!( \"%?\", $arg ))
439439
);
440440
($( $arg:expr ),+) => (
441-
log(::core::debug, fmt!( $($arg),+ ))
441+
log(4u32, fmt!( $($arg),+ ))
442442
)
443443
)
444444

0 commit comments

Comments
 (0)