Skip to content

Commit

Permalink
Auto merge of #4512 - mati865:rustup, r=phansch
Browse files Browse the repository at this point in the history
Rustup to rust-lang/rust#64111

changelog: none
  • Loading branch information
bors committed Sep 6, 2019
2 parents 9672a04 + 5afa216 commit 804f8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/non_expressive_names.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});

Expand Down

0 comments on commit 804f8e6

Please sign in to comment.