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-23 20:25:23 -0700
committerBrian Anderson <banderson@mozilla.com>2011-08-27 15:53:08 -0700
commitee2a11eb4f986e87df5c16850b70d612dd5e9ce9 (patch)
treefbb45fe1a3ccbde30eb5d5e4d5c1ddafc68fc837 /src/comp/syntax/parse
parent69e6abf9ceffc3919363e80b246f8b7224e7f3d4 (diff)
downloadrust-ee2a11eb4f986e87df5c16850b70d612dd5e9ce9.tar.gz
rust-ee2a11eb4f986e87df5c16850b70d612dd5e9ce9.zip
Convert std::uint to istrs. Issue #855
Diffstat (limited to 'src/comp/syntax/parse')
-rw-r--r--src/comp/syntax/parse/token.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/syntax/parse/token.rs b/src/comp/syntax/parse/token.rs
index 7e93444e09b..994c4e03b34 100644
--- a/src/comp/syntax/parse/token.rs
+++ b/src/comp/syntax/parse/token.rs
@@ -6,6 +6,7 @@ import util::interner;
 import std::int;
 import std::uint;
 import std::str;
+import std::istr;
 
 type str_num = uint;
 
@@ -146,7 +147,7 @@ fn to_str(r: lexer::reader, t: token) -> str {
       LIT_INT(i) {
         ret int::to_str(i, 10u);
       }
-      LIT_UINT(u) { ret uint::to_str(u, 10u); }
+      LIT_UINT(u) { ret istr::to_estr(uint::to_str(u, 10u)); }
       LIT_MACH_INT(tm, i) {
         ret int::to_str(i, 10u) + "_" + ty_mach_to_str(tm);
       }