We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b012615 commit 97deff1Copy full SHA for 97deff1
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
+ pub(crate) fn live_regions_at(&self, location: Location) -> impl Iterator<Item = N> + '_ {
181
+ let point = self.elements.point_from_location(location);
182
+ self.points.rows().filter(move |row| self.points.contains(*row, point))
183
+ }
184
185
186
/// Maps from `ty::PlaceholderRegion` values that are used in the rest of
0 commit comments