@@ -25,20 +25,20 @@ use crate::{
2525} ;
2626
2727/// Use this rather than `TyKind`, whenever possible.
28- #[ derive_where( Copy ; I : Interner , I :: Interned < WithCachedTypeInfo < TyKind < I >>> : Copy ) ]
28+ #[ derive_where( Copy ; I : Interner , I :: InternedTyKindWithCachedInfo : Copy ) ]
2929#[ derive_where( Clone , PartialEq , Eq , Hash ; I : Interner ) ]
3030#[ rustc_diagnostic_item = "Ty" ]
3131#[ rustc_pass_by_value]
32- pub struct Ty < I : Interner > ( pub I :: Interned < WithCachedTypeInfo < TyKind < I > > > ) ;
32+ pub struct Ty < I : Interner > ( pub I :: InternedTyKindWithCachedInfo ) ;
3333
3434impl < I : Interner > Ty < I > {
3535 #[ inline]
36- pub fn from_interned ( interned : I :: Interned < WithCachedTypeInfo < TyKind < I > > > ) -> Self {
36+ pub fn from_interned ( interned : I :: InternedTyKindWithCachedInfo ) -> Self {
3737 Ty ( interned)
3838 }
3939
4040 #[ inline]
41- pub fn interned ( self ) -> I :: Interned < WithCachedTypeInfo < TyKind < I > > > {
41+ pub fn interned ( self ) -> I :: InternedTyKindWithCachedInfo {
4242 self . 0
4343 }
4444}
@@ -60,7 +60,7 @@ impl<CTX, I: Interner> HashStable<CTX> for Ty<I> {
6060
6161impl < I : Interner > fmt:: Debug for Ty < I >
6262where
63- I :: Interned < WithCachedTypeInfo < TyKind < I > > > : Deref < Target = WithCachedTypeInfo < TyKind < I > > > ,
63+ I :: InternedTyKindWithCachedInfo : Deref < Target = WithCachedTypeInfo < TyKind < I > > > ,
6464{
6565 fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
6666 fmt:: Debug :: fmt ( & ( * self ) . kind ( ) , f)
6969
7070impl < I : Interner > IntoKind for Ty < I >
7171where
72- I :: Interned < WithCachedTypeInfo < TyKind < I > > > : Deref < Target = WithCachedTypeInfo < TyKind < I > > > ,
72+ I :: InternedTyKindWithCachedInfo : Deref < Target = WithCachedTypeInfo < TyKind < I > > > ,
7373{
7474 type Kind = TyKind < I > ;
7575
8181
8282impl < I : Interner > Flags for Ty < I >
8383where
84- I :: Interned < WithCachedTypeInfo < TyKind < I > > > : Deref < Target = WithCachedTypeInfo < TyKind < I > > > ,
84+ I :: InternedTyKindWithCachedInfo : Deref < Target = WithCachedTypeInfo < TyKind < I > > > ,
8585{
8686 #[ inline]
8787 fn flags ( & self ) -> TypeFlags {
@@ -102,7 +102,7 @@ impl<I: Interner> TypeVisitable<I> for Ty<I> {
102102
103103impl < I : Interner > TypeSuperVisitable < I > for Ty < I >
104104where
105- I :: Interned < WithCachedTypeInfo < TyKind < I > > > : Deref < Target = WithCachedTypeInfo < TyKind < I > > > ,
105+ I :: InternedTyKindWithCachedInfo : Deref < Target = WithCachedTypeInfo < TyKind < I > > > ,
106106 I :: BoundExistentialPredicates : TypeVisitable < I > ,
107107 I :: Const : TypeVisitable < I > ,
108108 I :: ErrorGuaranteed : TypeVisitable < I > ,
@@ -171,7 +171,7 @@ impl<I: Interner> TypeFoldable<I> for Ty<I> {
171171
172172impl < I : Interner > TypeSuperFoldable < I > for Ty < I >
173173where
174- I :: Interned < WithCachedTypeInfo < TyKind < I > > > : Deref < Target = WithCachedTypeInfo < TyKind < I > > > ,
174+ I :: InternedTyKindWithCachedInfo : Deref < Target = WithCachedTypeInfo < TyKind < I > > > ,
175175 I :: BoundExistentialPredicates : TypeFoldable < I > ,
176176 I :: Const : TypeFoldable < I > ,
177177 I :: GenericArgs : TypeFoldable < I > ,
@@ -279,7 +279,7 @@ where
279279 I :: Region : TypeFoldable < I > + TypeVisitable < I > ,
280280 I :: Term : From < Ty < I > > ,
281281 I :: Tys : TypeFoldable < I > + TypeVisitable < I > ,
282- I :: Interned < WithCachedTypeInfo < TyKind < I > > > :
282+ I :: InternedTyKindWithCachedInfo :
283283 Copy + Clone + Debug + Hash + Eq + Deref < Target = WithCachedTypeInfo < TyKind < I > > > ,
284284{
285285 /// Avoid using this in favour of more specific `new_*` methods, where possible.
@@ -652,7 +652,7 @@ where
652652// Methods to determine what flavour `Ty` is
653653impl < I : Interner > Ty < I >
654654where
655- I :: Interned < WithCachedTypeInfo < TyKind < I > > > : Deref < Target = WithCachedTypeInfo < TyKind < I > > > ,
655+ I :: InternedTyKindWithCachedInfo : Deref < Target = WithCachedTypeInfo < TyKind < I > > > ,
656656 I :: BoundExistentialPredicates : TypeVisitable < I > ,
657657 I :: Const : TypeVisitable < I > ,
658658 I :: ErrorGuaranteed : TypeVisitable < I > ,
0 commit comments