1
Fork 0

Disable non-required MIR opts with optimize(none)

Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
This commit is contained in:
clubby789 2024-12-09 19:34:51 +00:00
parent cd848c9f3e
commit 7a9661d768
57 changed files with 319 additions and 10 deletions

View file

@ -62,6 +62,10 @@ impl<'tcx> crate::MirPass<'tcx> for RemoveUninitDrops {
block.terminator_mut().kind = TerminatorKind::Goto { target: *target };
}
}
fn is_required(&self) -> bool {
true
}
}
fn is_needs_drop_and_init<'tcx>(