about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-06-11 22:13:23 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2013-06-12 12:21:04 +1000
commit3a1e13c7a00cd5cc90385d1fc577a992a155bd34 (patch)
tree0e3059fecfe8c9b7c509fa40d0b7b6d145bfebae /src/libsyntax/parse
parent9e60e2e297cb28ec4812fd3ed6124f44ff28c642 (diff)
downloadrust-3a1e13c7a00cd5cc90385d1fc577a992a155bd34.tar.gz
rust-3a1e13c7a00cd5cc90385d1fc577a992a155bd34.zip
std: convert str::escape_* to methods.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/token.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index 7359448a8f2..91605db77b5 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -193,7 +193,7 @@ pub fn to_str(in: @ident_interner, t: &Token) -> ~str {
         }
         body
       }
-      LIT_STR(ref s) => { ~"\"" + str::escape_default(*ident_to_str(s)) + "\"" }
+      LIT_STR(ref s) => { ~"\"" + ident_to_str(s).escape_default() + "\"" }
 
       /* Name components */
       IDENT(s, _) => copy *in.get(s.name),