Skip to content

Commit af3ff10

Browse files
committed
improve comment on LiveVar
1 parent 94697ba commit af3ff10

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,10 @@ impl NllLivenessMap {
9393
}
9494
}
9595

96-
/// Index given to each local variable whose type contains a region.
97-
newtype_index!(LiveVar);
96+
/// Index given to each local variable for which we need to
97+
/// compute liveness information. For many locals, we are able to
98+
/// skip liveness information: for example, those variables whose
99+
/// types contain no regions.
100+
newtype_index!(
101+
LiveVar
102+
);

0 commit comments

Comments
 (0)