Rollup merge of #106829 - compiler-errors:more-alias-combine, r=spastorino
Unify `Opaque`/`Projection` handling in region outlives code They share basically identical paths in most places which are even easier to unify now that they're both `ty::Alias` r? types
This commit is contained in:
commit
6b49435480
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