We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2077146 commit 7d75c4eCopy full SHA for 7d75c4e
compiler/rustc_mir_transform/src/remove_zsts.rs
@@ -12,11 +12,6 @@ impl<'tcx> crate::MirPass<'tcx> for RemoveZsts {
12
}
13
14
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
-
20
let typing_env = body.typing_env(tcx);
21
let local_decls = &body.local_decls;
22
let mut replacer = Replacer { tcx, typing_env, local_decls };
0 commit comments