diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-01-11 09:09:46 -0800 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-01-11 10:32:54 -0800 |
| commit | c68345e57e82e7233e0f875bd416f46e1f8859e1 (patch) | |
| tree | 394fdadbb90e0eb8661e1a9475985f12629ada67 /src/comp | |
| parent | f3b867fd04d06c732a41e05c3abddb8e8bcbdbbb (diff) | |
| download | rust-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.rs | 2 |
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; |
