1
Fork 0

Stop optimizing promoteds

This commit is contained in:
oli 2020-10-20 15:00:55 +00:00 committed by oli
parent 9a22f993f0
commit 68ff5f0a18
8 changed files with 70 additions and 71 deletions

View file

@ -510,7 +510,6 @@ fn promoted_mir<'tcx>(
for body in &mut promoted {
run_post_borrowck_cleanup_passes(tcx, body);
run_optimization_passes(tcx, body);
}
debug_assert!(!promoted.has_free_regions(), "Free regions in promoted MIR");