From 888517df4d5c83423f9722b32c6fe1b113b58208 Mon Sep 17 00:00:00 2001 From: Kevin Butler Date: Fri, 11 Apr 2014 01:21:01 +0100 Subject: libsyntax: update helper to stringify TyU* and TyI* to take into account having a value. Fixes #13359. --- src/libsyntax/parse/token.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/libsyntax/parse') diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index baade21d942..101c748b1ec 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -201,12 +201,8 @@ pub fn to_str(t: &Token) -> ~str { res.push_char('\''); res.into_owned() } - LIT_INT(i, t) => { - i.to_str() + ast_util::int_ty_to_str(t) - } - LIT_UINT(u, t) => { - u.to_str() + ast_util::uint_ty_to_str(t) - } + LIT_INT(i, t) => ast_util::int_ty_to_str(t, Some(i)), + LIT_UINT(u, t) => ast_util::uint_ty_to_str(t, Some(u)), LIT_INT_UNSUFFIXED(i) => { i.to_str() } LIT_FLOAT(s, t) => { let mut body = StrBuf::from_str(get_ident(s).get()); -- cgit 1.4.1-3-g733a5