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-27 14:42:29 -0700
committerBrian Anderson <banderson@mozilla.com>2011-08-27 15:54:46 -0700
commit9fb085560d969eb654c0fe0f0e1501dfb3665280 (patch)
treee7d56aad494df8354c57461d9e7d5a33851867d1 /src/comp/syntax/parse
parentcbad23a747c282d190e3c264f515765a938b0c98 (diff)
downloadrust-9fb085560d969eb654c0fe0f0e1501dfb3665280.tar.gz
rust-9fb085560d969eb654c0fe0f0e1501dfb3665280.zip
Convert rustc::syntax::ast_util to istrs. Issue #855
Diffstat (limited to 'src/comp/syntax/parse')
-rw-r--r--src/comp/syntax/parse/token.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/comp/syntax/parse/token.rs b/src/comp/syntax/parse/token.rs
index bb678d26c7e..b83a2f27e31 100644
--- a/src/comp/syntax/parse/token.rs
+++ b/src/comp/syntax/parse/token.rs
@@ -149,12 +149,12 @@ fn to_str(r: lexer::reader, t: token) -> istr {
       }
       LIT_UINT(u) { ret uint::to_str(u, 10u); }
       LIT_MACH_INT(tm, i) {
-        ret int::to_str(i, 10u) + ~"_" + istr::from_estr(ty_mach_to_str(tm));
+        ret int::to_str(i, 10u) + ~"_" + ty_mach_to_str(tm);
       }
       LIT_MACH_FLOAT(tm, s) {
         ret interner::get::<istr>(
             *r.get_interner(), s) + ~"_" +
-            istr::from_estr(ty_mach_to_str(tm));
+            ty_mach_to_str(tm);
       }
       LIT_FLOAT(s) {
         ret interner::get::<istr>(*r.get_interner(), s);