From 5afa216e30259291241f23f6fa395c670261e7d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Miku=C5=82a?= Date: Fri, 6 Sep 2019 13:57:27 +0200 Subject: [PATCH] Rustup to rust-lang/rust#64111 --- clippy_lints/src/non_expressive_names.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clippy_lints/src/non_expressive_names.rs b/clippy_lints/src/non_expressive_names.rs index fc614b08a1f5..a9977a93b323 100644 --- a/clippy_lints/src/non_expressive_names.rs +++ b/clippy_lints/src/non_expressive_names.rs @@ -327,7 +327,7 @@ impl<'a, 'tcx> Visitor<'tcx> for SimilarNamesLocalVisitor<'a, 'tcx> { self.apply(|this| { // just go through the first pattern, as either all patterns // bind the same bindings or rustc would have errored much earlier - SimilarNamesNameVisitor(this).visit_pat(&arm.pats[0]); + SimilarNamesNameVisitor(this).visit_pat(&arm.pat); this.apply(|this| walk_expr(this, &arm.body)); });