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
@@ -61,7 +61,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for ArrayIndexing {
|
||||
// Array with known size can be checked statically
|
||||
let ty = cx.tcx.tables().expr_ty(array);
|
||||
if let ty::TyArray(_, size) = ty.sty {
|
||||
let size = ConstInt::Infer(size as u64);
|
||||
let size = ConstInt::Infer(size as u128);
|
||||
|
||||
// Index is a constant uint
|
||||
let const_index = eval_const_expr_partial(cx.tcx, index, ExprTypeChecked, None);
|
||||
|
||||
Reference in New Issue
Block a user