about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorNiko Matsakis <niko@alum.mit.edu>2012-01-11 09:09:46 -0800
committerNiko Matsakis <niko@alum.mit.edu>2012-01-11 10:32:54 -0800
commitc68345e57e82e7233e0f875bd416f46e1f8859e1 (patch)
tree394fdadbb90e0eb8661e1a9475985f12629ada67 /src/comp
parentf3b867fd04d06c732a41e05c3abddb8e8bcbdbbb (diff)
downloadrust-c68345e57e82e7233e0f875bd416f46e1f8859e1.tar.gz
rust-c68345e57e82e7233e0f875bd416f46e1f8859e1.zip
add a log_str() function and allow '%?' in fmt strings to use it
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/syntax/ext/fmt.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/comp/syntax/ext/fmt.rs b/src/comp/syntax/ext/fmt.rs
index 3b17fdb6f7c..dc613bcbaa6 100644
--- a/src/comp/syntax/ext/fmt.rs
+++ b/src/comp/syntax/ext/fmt.rs
@@ -247,6 +247,7 @@ fn pieces_to_expr(cx: ext_ctxt, sp: span, pieces: [piece], args: [@ast::expr])
           ty_bits. { ret make_conv_call(cx, arg.span, "uint", cnv, arg); }
           ty_octal. { ret make_conv_call(cx, arg.span, "uint", cnv, arg); }
           ty_float. { ret make_conv_call(cx, arg.span, "float", cnv, arg); }
+          ty_poly. { ret make_conv_call(cx, arg.span, "poly", cnv, arg); }
           _ { cx.span_unimpl(sp, unsupported); }
         }
     }
@@ -303,6 +304,7 @@ fn pieces_to_expr(cx: ext_ctxt, sp: span, pieces: [piece], args: [@ast::expr])
           }
           ty_octal. { #debug("type: octal"); }
           ty_float. { #debug("type: float"); }
+          ty_poly. { #debug("type: poly"); }
         }
     }
     let fmt_sp = args[0].span;