We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
BitSet
1 parent de5fbd0 commit 51a17aaCopy full SHA for 51a17aa
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