Skip to content

Commit f00a78e

Browse files
Use agreed upon terminology in cursor docs
1 parent c530b2d commit f00a78e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/librustc_mir/dataflow/framework/cursor.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ where
7979
self.state.contains(elem)
8080
}
8181

82-
/// Resets the cursor to hold the dataflow state for the given basic block at fixpoint.
82+
/// Resets the cursor to hold the entry set for the given basic block.
8383
///
8484
/// For forward dataflow analyses, this is the dataflow state prior to the first statement.
8585
///
@@ -90,9 +90,9 @@ where
9090
self.state_needs_reset = false;
9191
}
9292

93-
/// Resets the cursor to hold the state at the entry to the given block.
93+
/// Resets the cursor to hold the state prior to the first statement in a basic block.
9494
///
95-
/// For forward analyses, this is the block's state at fixpoint.
95+
/// For forward analyses, this is the entry set for the given block.
9696
///
9797
/// For backward analyses, this is the state that will be propagated to its
9898
/// predecessors (ignoring edge-specific effects).
@@ -104,9 +104,9 @@ where
104104
}
105105
}
106106

107-
/// Resets the cursor to hold the state at the exit of the given block.
107+
/// Resets the cursor to hold the state after the terminator in a basic block.
108108
///
109-
/// For backward analyses, this is the block's state at fixpoint.
109+
/// For backward analyses, this is the entry set for the given block.
110110
///
111111
/// For forward analyses, this is the state that will be propagated to its
112112
/// successors (ignoring edge-specific effects).

0 commit comments

Comments
 (0)