Skip to content

Commit a7f1f24

Browse files
committed
allow access to liveness' PointIndexes
1 parent af8a318 commit a7f1f24

File tree

1 file changed

+5
-0
lines changed
  • compiler/rustc_borrowck/src/region_infer

1 file changed

+5
-0
lines changed

compiler/rustc_borrowck/src/region_infer/values.rs

+5
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ impl<N: Idx> LivenessValues<N> {
176176
pub(crate) fn region_value_str(&self, r: N) -> String {
177177
region_value_str(self.get_elements(r).map(RegionElement::Location))
178178
}
179+
180+
#[inline]
181+
pub(crate) fn point_from_location(&self, location: Location) -> PointIndex {
182+
self.elements.point_from_location(location)
183+
}
179184
}
180185

181186
/// Maps from `ty::PlaceholderRegion` values that are used in the rest of

0 commit comments

Comments
 (0)