Skip to content

Commit 98b86fa

Browse files
committed
Document Condition.
1 parent 4705624 commit 98b86fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/rustc_mir_transform/src/jump_threading.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ struct TOFinder<'tcx, 'a> {
146146
opportunities: Vec<ThreadingOpportunity>,
147147
}
148148

149+
/// Represent the following statement. If we can prove that the current local is equal/not-equal
150+
/// to `value`, jump to `target`.
149151
#[derive(Copy, Clone, Debug)]
150152
struct Condition {
151153
value: ScalarInt,

0 commit comments

Comments
 (0)