about summary refs log tree commit diff
path: root/src/comp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-08-25 21:49:06 -0700
committerBrian Anderson <banderson@mozilla.com>2011-08-27 15:54:44 -0700
commit7284f820d57e13b10fd9f1c3fc771fac52b6b66a (patch)
tree9f047d06d8239636e49b1fca640ac489877af0af /src/comp
parent6b3f0b21bec623eb878735601c514a383c606bed (diff)
downloadrust-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.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 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 {