about summary refs log tree commit diff
path: root/src/comp/syntax/parse
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-08-28 00:24:28 -0700
committerBrian Anderson <banderson@mozilla.com>2011-08-31 11:44:06 -0700
commit498e38b705348333df9ab02059d07f114baccc45 (patch)
tree23a43b5b13b21ed2510d6dc52799e3e6d672b467 /src/comp/syntax/parse
parent959938e89144435c3a2fb1752527cfb17dd071a4 (diff)
downloadrust-498e38b705348333df9ab02059d07f114baccc45.tar.gz
rust-498e38b705348333df9ab02059d07f114baccc45.zip
Convert uses of #fmt to #ifmt. Issue #855
Diffstat (limited to 'src/comp/syntax/parse')
-rw-r--r--src/comp/syntax/parse/lexer.rs15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/comp/syntax/parse/lexer.rs b/src/comp/syntax/parse/lexer.rs
index 988c46b6b88..fa147faa1cc 100644
--- a/src/comp/syntax/parse/lexer.rs
+++ b/src/comp/syntax/parse/lexer.rs
@@ -326,8 +326,7 @@ fn scan_numeric_escape(rdr: &reader, n_hex_digits: uint) -> char {
         rdr.bump();
         if !is_hex_digit(n) {
             rdr.err(
-                istr::from_estr(
-                    #fmt["illegal numeric character escape: %d", n as int]));
+                    #ifmt["illegal numeric character escape: %d", n as int]);
             fail;
         }
         accum_int *= 16;
@@ -471,8 +470,8 @@ fn next_token_inner(rdr: &reader) -> token::token {
               'U' { c2 = scan_numeric_escape(rdr, 8u); }
               c2 {
                 rdr.err(
-                    istr::from_estr(#fmt["unknown character escape: %d",
-                                         c2 as int]));
+                    #ifmt["unknown character escape: %d",
+                                         c2 as int]);
                 fail;
               }
             }
@@ -512,8 +511,8 @@ fn next_token_inner(rdr: &reader) -> token::token {
                   }
                   c2 {
                     rdr.err(
-                        istr::from_estr(#fmt["unknown string escape: %d",
-                                             c2 as int]));
+                        #ifmt["unknown string escape: %d",
+                                             c2 as int]);
                     fail;
                   }
                 }
@@ -553,7 +552,7 @@ fn next_token_inner(rdr: &reader) -> token::token {
       '%' { ret binop(rdr, token::PERCENT); }
       c {
         rdr.err(
-            istr::from_estr(#fmt["unkown start of token: %d", c as int]));
+            #ifmt["unkown start of token: %d", c as int]);
         fail;
       }
     }
@@ -654,7 +653,7 @@ fn read_block_comment(rdr: &reader, code_to_the_left: bool) -> cmnt {
     let curr_line = ~"/*";
     let level: int = 1;
     while level > 0 {
-        log #fmt["=== block comment level %d", level];
+        log #ifmt["=== block comment level %d", level];
         if rdr.is_eof() { rdr.err(~"unterminated block comment"); fail; }
         if rdr.curr() == '\n' {
             trim_whitespace_prefix_and_push_line(lines, curr_line, col);