File tree 1 file changed +3
-5
lines changed
compiler/rustc_borrowck/src/region_infer
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -116,17 +116,15 @@ pub(crate) enum RegionElement {
116
116
PlaceholderRegion ( ty:: PlaceholderRegion ) ,
117
117
}
118
118
119
- /// When we initially compute liveness, we use an interval matrix storing
120
- /// liveness ranges for each region-vid.
119
+ /// Records the CFG locations where each region is live. When we initially compute liveness, we use
120
+ /// an interval matrix storing liveness ranges for each region-vid.
121
121
pub ( crate ) struct LivenessValues < N : Idx > {
122
122
elements : Rc < RegionValueElements > ,
123
123
points : SparseIntervalMatrix < N , PointIndex > ,
124
124
}
125
125
126
126
impl < N : Idx > LivenessValues < N > {
127
- /// Creates a new set of "region values" that tracks causal information.
128
- /// Each of the regions in num_region_variables will be initialized with an
129
- /// empty set of points and no causal information.
127
+ /// Create an empty map of regions to locations where they're live.
130
128
pub ( crate ) fn new ( elements : Rc < RegionValueElements > ) -> Self {
131
129
Self { points : SparseIntervalMatrix :: new ( elements. num_points ) , elements }
132
130
}
You can’t perform that action at this time.
0 commit comments