update to the rust-PR that unblocks clippy
This commit is contained in:
parent
4a05fbba3e
commit
778ce4dfd3
66 changed files with 217 additions and 217 deletions
|
@ -55,8 +55,8 @@ impl LintPass for ArrayIndexing {
|
|||
}
|
||||
}
|
||||
|
||||
impl LateLintPass for ArrayIndexing {
|
||||
fn check_expr<'a, 'tcx: 'a>(&mut self, cx: &LateContext<'a, 'tcx>, e: &'tcx hir::Expr) {
|
||||
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for ArrayIndexing {
|
||||
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, e: &'tcx hir::Expr) {
|
||||
if let hir::ExprIndex(ref array, ref index) = e.node {
|
||||
// Array with known size can be checked statically
|
||||
let ty = cx.tcx.tables().expr_ty(array);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue