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

View file

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