We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40bd686 commit ce24d37Copy full SHA for ce24d37
src/libsyntax/parse/token.rs
@@ -150,14 +150,12 @@ fn to_str(in: @ident_interner, t: Token) -> ~str {
150
~"'" + char::escape_default(c as char) + ~"'"
151
}
152
LIT_INT(i, t) => {
153
- int::to_str(i as int, 10u) + ast_util::int_ty_to_str(t)
+ i.to_str() + ast_util::int_ty_to_str(t)
154
155
LIT_UINT(u, t) => {
156
- uint::to_str(u as uint, 10u) + ast_util::uint_ty_to_str(t)
157
- }
158
- LIT_INT_UNSUFFIXED(i) => {
159
- int::to_str(i as int, 10u)
+ u.to_str() + ast_util::uint_ty_to_str(t)
160
+ LIT_INT_UNSUFFIXED(i) => { i.to_str() }
161
LIT_FLOAT(s, t) => {
162
let mut body = *in.get(s);
163
if body.ends_with(~".") {
0 commit comments