Rustup to rustc 1.16.0-nightly (468227129 2017-01-03): u128 fixes for rustup

This commit is contained in:
Josh Holmer
2017-01-04 12:05:33 -05:00
committed by Manish Goregaokar
parent 64f5dbc9f8
commit 5aea0b2062
5 changed files with 10 additions and 9 deletions

View File

@@ -611,7 +611,7 @@ pub fn walk_ptrs_ty_depth(ty: ty::Ty) -> (ty::Ty, usize) {
}
/// Check whether the given expression is a constant literal of the given value.
pub fn is_integer_literal(expr: &Expr, value: u64) -> bool {
pub fn is_integer_literal(expr: &Expr, value: u128) -> bool {
// FIXME: use constant folding
if let ExprLit(ref spanned) = expr.node {
if let LitKind::Int(v, _) = spanned.node {