diff options
| author | bors <bors@rust-lang.org> | 2019-09-06 12:13:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-09-06 12:13:06 +0000 |
| commit | 804f8e6b5a13cf304e5f5bbef99cf2d70a145bd6 (patch) | |
| tree | 4d510fe14a65155c83d54f00021b34de00bad1ea | |
| parent | 9672a0400cf5be60e06782f4a1faabade15e8936 (diff) | |
| parent | 5afa216e30259291241f23f6fa395c670261e7d7 (diff) | |
| download | rust-804f8e6b5a13cf304e5f5bbef99cf2d70a145bd6.tar.gz rust-804f8e6b5a13cf304e5f5bbef99cf2d70a145bd6.zip | |
Auto merge of #4512 - mati865:rustup, r=phansch
Rustup to rust-lang/rust#64111 changelog: none
| -rw-r--r-- | clippy_lints/src/non_expressive_names.rs | 2 |
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)); }); |
