We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
RequiresStorage
1 parent 75d256f commit 21cd1feCopy full SHA for 21cd1fe
src/librustc_mir/transform/generator.rs
@@ -619,8 +619,9 @@ fn compute_storage_conflicts(
619
local_conflicts: BitMatrix::from_row_n(&ineligible_locals, body.local_decls.len()),
620
};
621
622
- // FIXME: Do we need to do this in RPO?
623
- requires_storage.visit_in_rpo_with(body, &mut visitor);
+ // Visit only reachable basic blocks. The exact order is not important.
+ let reachable_blocks = traversal::preorder(body).map(|(bb, _)| bb);
624
+ requires_storage.visit_with(body, reachable_blocks, &mut visitor);
625
626
let local_conflicts = visitor.local_conflicts;
627
0 commit comments