diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-08-25 21:49:06 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-08-27 15:54:44 -0700 |
| commit | 7284f820d57e13b10fd9f1c3fc771fac52b6b66a (patch) | |
| tree | 9f047d06d8239636e49b1fca640ac489877af0af /src/comp | |
| parent | 6b3f0b21bec623eb878735601c514a383c606bed (diff) | |
| download | rust-7284f820d57e13b10fd9f1c3fc771fac52b6b66a.tar.gz rust-7284f820d57e13b10fd9f1c3fc771fac52b6b66a.zip | |
Support istrs in #fmt. Issue #855
The format string may be an istr and istr args may be used with %S
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 093799714a7..2a441341f49 100644 --- a/src/comp/syntax/ext/fmt.rs +++ b/src/comp/syntax/ext/fmt.rs @@ -241,6 +241,7 @@ fn pieces_to_expr(cx: &ext_ctxt, sp: span, pieces: &[piece], } alt cnv.ty { ty_str. { ret make_conv_call(cx, arg.span, "str", cnv, arg); } + ty_istr. { ret make_conv_call(cx, arg.span, "istr", cnv, arg); } ty_int(sign) { alt sign { signed. { ret make_conv_call(cx, arg.span, "int", cnv, arg); } @@ -297,6 +298,7 @@ fn pieces_to_expr(cx: &ext_ctxt, sp: span, pieces: &[piece], alt c.ty { ty_bool. { log "type: bool"; } ty_str. { log "type: str"; } + ty_istr. { log "type: istr"; } ty_char. { log "type: char"; } ty_int(s) { alt s { |
