Skip to content

Commit 804f8e6

Browse files
committed
Auto merge of #4512 - mati865:rustup, r=phansch
Rustup to rust-lang/rust#64111 changelog: none
2 parents 9672a04 + 5afa216 commit 804f8e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: clippy_lints/src/non_expressive_names.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ impl<'a, 'tcx> Visitor<'tcx> for SimilarNamesLocalVisitor<'a, 'tcx> {
327327
self.apply(|this| {
328328
// just go through the first pattern, as either all patterns
329329
// bind the same bindings or rustc would have errored much earlier
330-
SimilarNamesNameVisitor(this).visit_pat(&arm.pats[0]);
330+
SimilarNamesNameVisitor(this).visit_pat(&arm.pat);
331331
this.apply(|this| walk_expr(this, &arm.body));
332332
});
333333

0 commit comments

Comments
 (0)