Rustup to rustc 1.16.0-nightly (468227129 2017-01-03): u128 fixes for rustup
This commit is contained in:
committed by
Manish Goregaokar
parent
64f5dbc9f8
commit
5aea0b2062
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user