Fixes to build with current rust nightly

This commit is contained in:
Florian Hartwig 2015-11-25 16:28:29 +01:00
parent c61c776308
commit cf54006449

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()),