Skip to content

Commit 38a5ae9

Browse files
committed
or-patterns: regionck/visit_arm: remove top_pats_hack.
1 parent 0dfd706 commit 38a5ae9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustc_typeck/check/regionck.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,9 +488,7 @@ impl<'a, 'tcx> Visitor<'tcx> for RegionCtxt<'a, 'tcx> {
488488

489489
fn visit_arm(&mut self, arm: &'tcx hir::Arm) {
490490
// see above
491-
for p in arm.top_pats_hack() {
492-
self.constrain_bindings_in_pat(p);
493-
}
491+
self.constrain_bindings_in_pat(&arm.pat);
494492
intravisit::walk_arm(self, arm);
495493
}
496494

0 commit comments

Comments
 (0)