Skip to content

Commit 659c5bb

Browse files
committed
Perform RemoveZsts inside coroutines.
1 parent 0ce7db3 commit 659c5bb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

compiler/rustc_mir_transform/src/remove_zsts.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ impl<'tcx> crate::MirPass<'tcx> for RemoveZsts {
1212
}
1313

1414
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
15-
// Avoid query cycles (coroutines require optimized MIR for layout).
16-
if tcx.type_of(body.source.def_id()).instantiate_identity().is_coroutine() {
17-
return;
18-
}
19-
2015
let typing_env = body.typing_env(tcx);
2116
let local_decls = &body.local_decls;
2217
let mut replacer = Replacer { tcx, typing_env, local_decls };

0 commit comments

Comments
 (0)