Skip to content

Commit 9394a99

Browse files
committed
fix comment
1 parent a63ece4 commit 9394a99

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/librustc_mir/borrow_check/nll/type_check/liveness/local_use_map.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ crate struct LocalUseMap<'me> {
3232
/// Head of a linked list of **uses** of each variable -- use in
3333
/// this context means that the existing value of the variable is
3434
/// read or modified. e.g., `y` is used in `x = y` but not `x`.
35+
/// Note that `DROP(x)` terminators are excluded from this list.
3536
first_use_at: IndexVec<LocalWithRegion, Option<AppearanceIndex>>,
3637

37-
/// Head of a linked list of **uses** of each variable -- use in
38-
/// this context means that the existing value of the variable is
39-
/// read or modified. e.g., `y` is used in `x = y` but not `x`.
38+
/// Head of a linked list of **drops** of each variable -- these
39+
/// are a special category of uses corresponding to the drop that
40+
/// we add for each local variable.
4041
first_drop_at: IndexVec<LocalWithRegion, Option<AppearanceIndex>>,
4142

4243
appearances: IndexVec<AppearanceIndex, Appearance>,

0 commit comments

Comments
 (0)