Add bidirectional where clauses on RPITIT synthesized GATs
This commit is contained in:
parent
d70deac161
commit
4925b57782
6 changed files with 92 additions and 36 deletions
|
@ -2664,6 +2664,10 @@ pub struct OpaqueTy<'hir> {
|
|||
pub generics: &'hir Generics<'hir>,
|
||||
pub bounds: GenericBounds<'hir>,
|
||||
pub origin: OpaqueTyOrigin,
|
||||
// Opaques have duplicated lifetimes, this mapping connects the original lifetime with the copy
|
||||
// so we can later generate bidirectional outlives predicates to enforce that these lifetimes
|
||||
// stay in sync.
|
||||
pub lifetime_mapping: &'hir [(Lifetime, LocalDefId)],
|
||||
pub in_trait: bool,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue