Merge pull request #472 from fhartwig/more-rustup

Fixes to build with current rust nightly
This commit is contained in:
Manish Goregaokar 2015-11-25 21:12:10 +05:30
commit 4d13085832
1 changed files with 2 additions and 2 deletions

View File

@ -195,9 +195,9 @@ impl fmt::Display for Constant {
let (sign, suffix) = match *ity {
LitIntType::SignedIntLit(ref sity, ref sign) =>
(if let Sign::Minus = *sign { "-" } else { "" },
ast_util::int_ty_to_string(*sity, None)),
ast_util::int_ty_to_string(*sity)),
LitIntType::UnsignedIntLit(ref uity) =>
("", ast_util::uint_ty_to_string(*uity, None)),
("", ast_util::uint_ty_to_string(*uity)),
LitIntType::UnsuffixedIntLit(ref sign) =>
(if let Sign::Minus = *sign { "-" } else { "" },
"".into()),