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 2452b2f commit 8df88faCopy full SHA for 8df88fa
compiler/rustc_mir_transform/src/sroa.rs
@@ -23,11 +23,6 @@ impl<'tcx> crate::MirPass<'tcx> for ScalarReplacementOfAggregates {
23
fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
24
debug!(def_id = ?body.source.def_id());
25
26
- // Avoid query cycles (coroutines require optimized MIR for layout).
27
- if tcx.type_of(body.source.def_id()).instantiate_identity().is_coroutine() {
28
- return;
29
- }
30
-
31
let mut excluded = excluded_locals(body);
32
let typing_env = body.typing_env(tcx);
33
loop {
0 commit comments