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.
record_conflicts
1 parent 157631b commit 90da274Copy full SHA for 90da274
src/librustc_mir/transform/generator.rs
@@ -622,6 +622,10 @@ fn compute_storage_conflicts(
622
record_conflicts_at_curr_loc(&mut local_conflicts, &init, &borrowed);
623
}
624
625
+ // We need to look for conflicts at the end of the block as well, otherwise we would not
626
+ // observe the dataflow state after the terminator effect is applied. As long as neither
627
+ // `init` nor `borrowed` has a "before" effect, we will observe all possible dataflow
628
+ // states here or in the loop above.
629
trace!("record conflicts at end of {:?}", block);
630
init.seek_to_block_end(block);
631
borrowed.seek_to_block_end(block);
0 commit comments