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.
BitSet
1 parent 3d12160 commit e3ef2ffCopy full SHA for e3ef2ff
compiler/rustc_mir_transform/src/coroutine.rs
@@ -697,8 +697,7 @@ fn locals_live_across_suspend_points<'tcx>(
697
let loc = Location { block, statement_index: data.statements.len() };
698
699
liveness.seek_to_block_end(block);
700
- let mut live_locals: BitSet<_> = BitSet::new_empty(body.local_decls.len());
701
- live_locals.union(liveness.get());
+ let mut live_locals = liveness.get().clone();
702
703
if !movable {
704
// The `liveness` variable contains the liveness of MIR locals ignoring borrows.
0 commit comments