Skip to content

Commit 3b61064

Browse files
committed
Revert all of yesterday's snapshots and try again. Cursed!
1 parent 47d27af commit 3b61064

File tree

4 files changed

+12
-18
lines changed

4 files changed

+12
-18
lines changed

src/comp/syntax/ext/expand.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ fn expand_expr(exts: hashmap<str, syntax_extension>, cx: ext_ctxt, e: expr_,
5555
fn core_macros() -> str {
5656
ret
5757
"{
58-
#macro[[#error[f, ...], log_err #fmt[f, ...]]];
59-
#macro[[#warn[f, ...], log_err #fmt[f, ...]]];
60-
#macro[[#info[f, ...], log_err #fmt[f, ...]]];
61-
#macro[[#debug[f, ...], log_err #fmt[f, ...]]];
58+
#macro[[#error[f, ...], log_full(core::error, #fmt[f, ...])]];
59+
#macro[[#warn[f, ...], log_full(core::warn, #fmt[f, ...])]];
60+
#macro[[#info[f, ...], log_full(core::info, #fmt[f, ...])]];
61+
#macro[[#debug[f, ...], log_full(core::debug, #fmt[f, ...])]];
6262
}";
6363
}
6464

src/libcore/core.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export option, some, none;
1111
// more-verbosity. Error is the bottom level, default logging level is
1212
// warn-and-below.
1313

14-
const error : int = 0;
15-
const warn : int = 1;
16-
const info : int = 2;
17-
const debug : int = 3;
14+
export error, warn, info, debug;
15+
const error : u32 = 0_u32;
16+
const warn : u32 = 1_u32;
17+
const info : u32 = 2_u32;
18+
const debug : u32 = 3_u32;

src/rt/rust_log.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,12 @@ struct log_directive {
129129
};
130130

131131
const size_t max_log_directives = 255;
132-
const size_t max_log_level = 1;
132+
const size_t max_log_level = 255;
133133
const size_t default_log_level = 0;
134134

135135
// This is a rather ugly parser for strings in the form
136-
// "crate1,crate2.mod3,crate3.x=1". Log levels are 0-1 for now,
137-
// eventually we'll have 0-3.
136+
// "crate1,crate2.mod3,crate3.x=1". Log levels are 0-255,
137+
// with the most likely ones being 0-3 (defined in core::).
138138
size_t parse_logging_spec(char* spec, log_directive* dirs) {
139139
size_t dir = 0;
140140
while (dir < max_log_directives && *spec) {

src/snapshots.txt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
S 2011-12-21 047b02d
2-
winnt-i386 cf6ed4fed5b07357cea5865ff91a9c4a0377a2f0
3-
linux-i386 6f6e329199d4e3e3ce2e9dc595fe6f4334e00684
4-
macos-i386 d125f065125bf0f3186d88afd58a1e471fe830a3
5-
linux-x86_64 c3315c5c679648bcfdf65910f427a37982918b09
6-
macos-x86_64 bab127bc6c383889d482c99e771be5e80405d7c9
7-
81
S 2011-12-19 edf6e1e
92
winnt-i386 7a358117e123ad3d16fa66106819ec0daf5a6aba
103
linux-i386 87b9a54e2e165b5c800236f49ee58522c8664226

0 commit comments

Comments
 (0)