1
Fork 0

auto merge of #13452 : Ryman/rust/fix_uint_as_u, r=alexcrichton

Fixes #13359.
This commit is contained in:
bors 2014-04-13 10:36:47 -07:00
commit 465109df62
6 changed files with 59 additions and 28 deletions

View file

@ -2171,10 +2171,10 @@ impl<'a> State<'a> {
word(&mut self.s, res.into_owned())
}
ast::LitInt(i, t) => {
word(&mut self.s, format!("{}{}", i, ast_util::int_ty_to_str(t)))
word(&mut self.s, ast_util::int_ty_to_str(t, Some(i)))
}
ast::LitUint(u, t) => {
word(&mut self.s, format!("{}{}", u, ast_util::uint_ty_to_str(t)))
word(&mut self.s, ast_util::uint_ty_to_str(t, Some(u)))
}
ast::LitIntUnsuffixed(i) => {
word(&mut self.s, format!("{}", i))