1
Fork 0

Neither require nor imply lifetime bounds on opaque type for well formedness

This commit is contained in:
Oli Scherer 2022-05-18 16:01:10 +00:00
parent c8ecf09a25
commit 37928f5986
30 changed files with 497 additions and 42 deletions

View file

@ -362,6 +362,11 @@ impl<'tcx> UniversalRegionRelationsBuilder<'_, 'tcx> {
self.region_bound_pairs
.insert(ty::OutlivesPredicate(GenericKind::Projection(projection_b), r_a));
}
OutlivesBound::RegionSubOpaque(r_a, def_id, substs) => {
self.region_bound_pairs
.insert(ty::OutlivesPredicate(GenericKind::Opaque(def_id, substs), r_a));
}
}
}
}