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.
outlives
1 parent 4b16ae1 commit 4dd6292Copy full SHA for 4dd6292
src/librustc_mir/borrow_check/nll/type_check/free_region_relations.rs
@@ -217,6 +217,11 @@ impl UniversalRegionRelations<'tcx> {
217
crate fn regions_outlived_by(&self, fr1: RegionVid) -> Vec<&RegionVid> {
218
self.outlives.reachable_from(&fr1)
219
}
220
+
221
+ /// Returns the _non-transitive_ set of known `outlives` constraints between free regions.
222
+ crate fn known_outlives(&self) -> impl Iterator<Item=(&RegionVid, &RegionVid)> {
223
+ self.outlives.base_edges()
224
+ }
225
226
227
struct UniversalRegionRelationsBuilder<'this, 'tcx> {
0 commit comments