Auto merge of #4512 - mati865:rustup, r=phansch

Rustup to rust-lang/rust#64111

changelog: none
This commit is contained in:
bors
2019-09-06 12:13:06 +00:00
+1 -1
View File
@@ -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));
});