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

@@ -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);