diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2011-12-22 17:53:53 -0800 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-12-22 17:53:53 -0800 |
| commit | f0dfbe7b1b8d630488441982cf3d46f82a3a89db (patch) | |
| tree | 8e26605c3d3628cd336e566b8ec7391c058c3a1a /src/comp/syntax/ext | |
| parent | ccb5b6fb259d5de9be751175fc53df1eaea4cd2c (diff) | |
| download | rust-f0dfbe7b1b8d630488441982cf3d46f82a3a89db.tar.gz rust-f0dfbe7b1b8d630488441982cf3d46f82a3a89db.zip | |
Register new snapshots, purge log_err and log_full in favour of log(...).
Diffstat (limited to 'src/comp/syntax/ext')
| -rw-r--r-- | src/comp/syntax/ext/fmt.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/comp/syntax/ext/fmt.rs b/src/comp/syntax/ext/fmt.rs index b91c19644bb..0530b743eef 100644 --- a/src/comp/syntax/ext/fmt.rs +++ b/src/comp/syntax/ext/fmt.rs @@ -29,7 +29,7 @@ fn expand_syntax_ext(cx: ext_ctxt, sp: span, arg: @ast::expr, "first argument to #fmt must be a " + "string literal."); let fmtspan = args[0].span; #debug("Format string:"); - log_full(core::debug, fmt); + log(debug, fmt); fn parse_fmt_err_(cx: ext_ctxt, sp: span, msg: str) -> ! { cx.span_fatal(sp, msg); } @@ -252,7 +252,7 @@ fn pieces_to_expr(cx: ext_ctxt, sp: span, pieces: [piece], args: [@ast::expr]) } fn log_conv(c: conv) { alt c.param { - some(p) { log_full(core::debug, "param: " + int::to_str(p, 10u)); } + some(p) { log(debug, "param: " + int::to_str(p, 10u)); } _ { #debug("param: none"); } } for f: flag in c.flags { @@ -265,20 +265,20 @@ fn pieces_to_expr(cx: ext_ctxt, sp: span, pieces: [piece], args: [@ast::expr]) } } alt c.width { - count_is(i) { log_full(core::debug, + count_is(i) { log(debug, "width: count is " + int::to_str(i, 10u)); } count_is_param(i) { - log_full(core::debug, + log(debug, "width: count is param " + int::to_str(i, 10u)); } count_is_next_param. { #debug("width: count is next param"); } count_implied. { #debug("width: count is implied"); } } alt c.precision { - count_is(i) { log_full(core::debug, + count_is(i) { log(debug, "prec: count is " + int::to_str(i, 10u)); } count_is_param(i) { - log_full(core::debug, + log(debug, "prec: count is param " + int::to_str(i, 10u)); } count_is_next_param. { #debug("prec: count is next param"); } |
