We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
PointIndex
1 parent af8a318 commit a7f1f24Copy full SHA for a7f1f24
compiler/rustc_borrowck/src/region_infer/values.rs
@@ -176,6 +176,11 @@ impl<N: Idx> LivenessValues<N> {
176
pub(crate) fn region_value_str(&self, r: N) -> String {
177
region_value_str(self.get_elements(r).map(RegionElement::Location))
178
}
179
+
180
+ #[inline]
181
+ pub(crate) fn point_from_location(&self, location: Location) -> PointIndex {
182
+ self.elements.point_from_location(location)
183
+ }
184
185
186
/// Maps from `ty::PlaceholderRegion` values that are used in the rest of
0 commit comments