about summary refs log tree commit diff
path: root/src/comp/front
diff options
context:
space:
mode:
authorBrian Anderson <andersrb@gmail.com>2011-06-04 17:53:17 -0400
committerBrian Anderson <andersrb@gmail.com>2011-06-04 17:57:53 -0400
commita177dc485b57f3bbe003899b6da0aa84e4ce1afb (patch)
tree313bf19ce6b65e7fec07aa64f75cac6f19ff749a /src/comp/front
parent4b566fe7f9d9571c5933fd0dad18bf83d57dea5e (diff)
rustc: Reenable debug logging in extfmt
This is not obnoxious now that logging is off by default
Diffstat (limited to 'src/comp/front')
-rw-r--r--src/comp/front/extfmt.rs15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/comp/front/extfmt.rs b/src/comp/front/extfmt.rs
index 0b5e399f332..1856b81ce58 100644
--- a/src/comp/front/extfmt.rs
+++ b/src/comp/front/extfmt.rs
@@ -29,8 +29,8 @@ fn expand_syntax_ext(&ext_ctxt cx,
 
     auto fmt = expr_to_str(cx, args.(0));
 
-    // log "Format string:";
-    // log fmt;
+    log "Format string:";
+    log fmt;
 
     auto pieces = parse_fmt_string(fmt);
     auto args_len = vec::len[@ast::expr](args);
@@ -465,6 +465,9 @@ fn pieces_to_expr(&ext_ctxt cx, common::span sp,
                     }
                 }
             }
+            case (ty_octal) {
+                log "type: octal";
+            }
         }
     }
 
@@ -487,9 +490,8 @@ fn pieces_to_expr(&ext_ctxt cx, common::span sp,
                                 + "for the given format string");
                 }
 
-                // TODO: Remove debug logging
-                //log "Building conversion:";
-                //log_conv(conv);
+                log "Building conversion:";
+                log_conv(conv);
 
                 auto arg_expr = args.(n);
                 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,
                          nargs, expected_nargs));
     }
 
-    // TODO: Remove this debug logging
-    // log "dumping expanded ast:";
-    // log pretty::print_expr(tmp_expr);
     ret tmp_expr;
 }