or-patterns: euv/arm_move_mode: remove top_pats_hack.

This commit is contained in:
Mazdak Farrokhzad 2019-09-15 04:17:55 +02:00
parent 57eeb61cc8
commit fb2cfec433

View File

@ -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
}