or-patterns: euv/arm_move_mode
: remove top_pats_hack
.
This commit is contained in:
parent
57eeb61cc8
commit
fb2cfec433
@ -779,9 +779,7 @@ fn walk_autoref(&mut self,
|
||||
|
||||
fn arm_move_mode(&mut self, discr_cmt: mc::cmt<'tcx>, arm: &hir::Arm) -> TrackMatchMode {
|
||||
let mut mode = Unknown;
|
||||
for pat in arm.top_pats_hack() {
|
||||
self.determine_pat_move_mode(discr_cmt.clone(), &pat, &mut mode);
|
||||
}
|
||||
self.determine_pat_move_mode(discr_cmt.clone(), &arm.pat, &mut mode);
|
||||
mode
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user