Skip to content

Commit a177dc4

Browse files
committed
rustc: Reenable debug logging in extfmt
This is not obnoxious now that logging is off by default
1 parent 4b566fe commit a177dc4

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/comp/front/extfmt.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ fn expand_syntax_ext(&ext_ctxt cx,
2929

3030
auto fmt = expr_to_str(cx, args.(0));
3131

32-
// log "Format string:";
33-
// log fmt;
32+
log "Format string:";
33+
log fmt;
3434

3535
auto pieces = parse_fmt_string(fmt);
3636
auto args_len = vec::len[@ast::expr](args);
@@ -465,6 +465,9 @@ fn pieces_to_expr(&ext_ctxt cx, common::span sp,
465465
}
466466
}
467467
}
468+
case (ty_octal) {
469+
log "type: octal";
470+
}
468471
}
469472
}
470473

@@ -487,9 +490,8 @@ fn pieces_to_expr(&ext_ctxt cx, common::span sp,
487490
+ "for the given format string");
488491
}
489492

490-
// TODO: Remove debug logging
491-
//log "Building conversion:";
492-
//log_conv(conv);
493+
log "Building conversion:";
494+
log_conv(conv);
493495

494496
auto arg_expr = args.(n);
495497
auto c_expr = make_new_conv(cx, fmt_sp, conv, arg_expr);
@@ -505,9 +507,6 @@ fn pieces_to_expr(&ext_ctxt cx, common::span sp,
505507
nargs, expected_nargs));
506508
}
507509

508-
// TODO: Remove this debug logging
509-
// log "dumping expanded ast:";
510-
// log pretty::print_expr(tmp_expr);
511510
ret tmp_expr;
512511
}
513512

0 commit comments

Comments
 (0)