We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
top_pats_hack
check_for_bindings_named_same_as_variants
1 parent 9b406f1 commit 6bd8c6dCopy full SHA for 6bd8c6d
src/librustc_mir/hair/pattern/check_match.rs
@@ -146,9 +146,7 @@ impl<'tcx> MatchVisitor<'_, 'tcx> {
146
}
147
148
// Third, perform some lints.
149
- for pat in arm.top_pats_hack() {
150
- check_for_bindings_named_same_as_variants(self, pat);
151
- }
+ check_for_bindings_named_same_as_variants(self, &arm.pat);
152
153
154
let module = self.tcx.hir().get_module_parent(scrut.hir_id);
0 commit comments