about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMateusz Mikuła <matti@marinelayer.io>2019-09-06 13:57:27 +0200
committerMateusz Mikuła <mati865@gmail.com>2019-09-06 13:57:27 +0200
commit5afa216e30259291241f23f6fa395c670261e7d7 (patch)
tree4d510fe14a65155c83d54f00021b34de00bad1ea
parent9672a0400cf5be60e06782f4a1faabade15e8936 (diff)
downloadrust-5afa216e30259291241f23f6fa395c670261e7d7.tar.gz
rust-5afa216e30259291241f23f6fa395c670261e7d7.zip
Rustup to rust-lang/rust#64111
-rw-r--r--clippy_lints/src/non_expressive_names.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/non_expressive_names.rs b/clippy_lints/src/non_expressive_names.rs
index fc614b08a1f..a9977a93b32 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));
         });