or-patterns: euv/walk_arm: remove top_pats_hack.
This commit is contained in:
parent
fb2cfec433
commit
d7139f3e6d
1 changed files with 1 additions and 3 deletions
|
|
@ -784,9 +784,7 @@ impl<'a, 'tcx> ExprUseVisitor<'a, 'tcx> {
|
|||
}
|
||||
|
||||
fn walk_arm(&mut self, discr_cmt: mc::cmt<'tcx>, arm: &hir::Arm, mode: MatchMode) {
|
||||
for pat in arm.top_pats_hack() {
|
||||
self.walk_pat(discr_cmt.clone(), &pat, mode);
|
||||
}
|
||||
self.walk_pat(discr_cmt.clone(), &arm.pat, mode);
|
||||
|
||||
if let Some(hir::Guard::If(ref e)) = arm.guard {
|
||||
self.consume_expr(e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue