Skip to content

Commit f1a675a

Browse files
committed
update comment in the interest of precision
1 parent a13e4ae commit f1a675a

File tree

1 file changed

+10
-6
lines changed
  • src/librustc_mir/dataflow

1 file changed

+10
-6
lines changed

src/librustc_mir/dataflow/mod.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -454,14 +454,18 @@ pub struct AllSets<E: Idx> {
454454
/// For each block, bits valid on entry to the block.
455455
on_entry_sets: Vec<IdxSet<E>>,
456456

457-
/// For each block, bits generated by executing the statements in
458-
/// the block. (For comparison, the Terminator for each block is
459-
/// handled in a flow-specific manner during propagation.)
457+
/// For each block, bits generated by executing the statements +
458+
/// terminator in the block -- with one caveat. In particular, for
459+
/// *call terminators*, the effect of storing the destination is
460+
/// not included, since that only takes effect on the **success**
461+
/// edge (and not the unwind edge).
460462
gen_sets: Vec<HybridIdxSet<E>>,
461463

462-
/// For each block, bits killed by executing the statements in the
463-
/// block. (For comparison, the Terminator for each block is
464-
/// handled in a flow-specific manner during propagation.)
464+
/// For each block, bits killed by executing the statements +
465+
/// terminator in the block -- with one caveat. In particular, for
466+
/// *call terminators*, the effect of storing the destination is
467+
/// not included, since that only takes effect on the **success**
468+
/// edge (and not the unwind edge).
465469
kill_sets: Vec<HybridIdxSet<E>>,
466470
}
467471

0 commit comments

Comments
 (0)