From c68345e57e82e7233e0f875bd416f46e1f8859e1 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Wed, 11 Jan 2012 09:09:46 -0800 Subject: add a log_str() function and allow '%?' in fmt strings to use it --- src/comp/syntax/ext/fmt.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/comp') 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; -- cgit 1.4.1-3-g733a5