Stop optimizing promoteds
This commit is contained in:
parent
9a22f993f0
commit
68ff5f0a18
8 changed files with 70 additions and 71 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue