mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
Auto merge of #4512 - mati865:rustup, r=phansch
Rustup to rust-lang/rust#64111 changelog: none
This commit is contained in:
@@ -327,7 +327,7 @@ fn visit_arm(&mut self, arm: &'tcx Arm) {
|
||||
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));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user