Skip to content

Commit d7139f3

Browse files
committed
or-patterns: euv/walk_arm: remove top_pats_hack.
1 parent fb2cfec commit d7139f3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustc/middle/expr_use_visitor.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -784,9 +784,7 @@ impl<'a, 'tcx> ExprUseVisitor<'a, 'tcx> {
784784
}
785785

786786
fn walk_arm(&mut self, discr_cmt: mc::cmt<'tcx>, arm: &hir::Arm, mode: MatchMode) {
787-
for pat in arm.top_pats_hack() {
788-
self.walk_pat(discr_cmt.clone(), &pat, mode);
789-
}
787+
self.walk_pat(discr_cmt.clone(), &arm.pat, mode);
790788

791789
if let Some(hir::Guard::If(ref e)) = arm.guard {
792790
self.consume_expr(e)

0 commit comments

Comments
 (0)