-impl LateLintPass for ArrayIndexing {
- fn check_expr(&mut self, cx: &LateContext, e: &Expr) {
- if let ExprIndex(ref array, ref index) = e.node {
+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 {