Rustup to rustc 1.15.0-nightly (0ed951993
2016-11-14)
This commit is contained in:
parent
bad26a5aca
commit
19c5f5394b
53 changed files with 237 additions and 246 deletions
|
@ -59,7 +59,7 @@ impl LateLintPass for ArrayIndexing {
|
|||
fn check_expr(&mut self, cx: &LateContext, e: &hir::Expr) {
|
||||
if let hir::ExprIndex(ref array, ref index) = e.node {
|
||||
// Array with known size can be checked statically
|
||||
let ty = cx.tcx.expr_ty(array);
|
||||
let ty = cx.tcx.tables().expr_ty(array);
|
||||
if let ty::TyArray(_, size) = ty.sty {
|
||||
let size = ConstInt::Infer(size as u64);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue