Unify Opaque/Projection handling in region outlives code
This commit is contained in:
parent
0b90256ada
commit
1ea6862db3
12 changed files with 54 additions and 114 deletions
|
@ -154,9 +154,8 @@ fn implied_bounds_from_components<'tcx>(
|
|||
match component {
|
||||
Component::Region(r) => Some(OutlivesBound::RegionSubRegion(sub_region, r)),
|
||||
Component::Param(p) => Some(OutlivesBound::RegionSubParam(sub_region, p)),
|
||||
Component::Projection(p) => Some(OutlivesBound::RegionSubProjection(sub_region, p)),
|
||||
Component::Opaque(def_id, substs) => {
|
||||
Some(OutlivesBound::RegionSubOpaque(sub_region, def_id, substs))
|
||||
Component::Alias(kind, p) => {
|
||||
Some(OutlivesBound::RegionSubAlias(sub_region, kind, p))
|
||||
}
|
||||
Component::EscapingProjection(_) =>
|
||||
// If the projection has escaping regions, don't
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue