@@ -79,7 +79,7 @@ pub enum TyKind<I: Interner> {
7979 ///
8080 /// Note that generic parameters in fields only get lazily substituted
8181 /// by using something like `adt_def.all_fields().map(|field| field.ty(tcx, args))`.
82- Adt ( I :: AdtDef , I :: GenericArgsRef ) ,
82+ Adt ( I :: AdtDef , I :: GenericArgs ) ,
8383
8484 /// An unsized FFI type that is opaque to Rust. Written as `extern type T`.
8585 Foreign ( I :: DefId ) ,
@@ -111,7 +111,7 @@ pub enum TyKind<I: Interner> {
111111 /// fn foo() -> i32 { 1 }
112112 /// let bar = foo; // bar: fn() -> i32 {foo}
113113 /// ```
114- FnDef ( I :: DefId , I :: GenericArgsRef ) ,
114+ FnDef ( I :: DefId , I :: GenericArgs ) ,
115115
116116 /// A pointer to a function. Written as `fn() -> i32`.
117117 ///
@@ -127,21 +127,21 @@ pub enum TyKind<I: Interner> {
127127 FnPtr ( I :: PolyFnSig ) ,
128128
129129 /// A trait object. Written as `dyn for<'b> Trait<'b, Assoc = u32> + Send + 'a`.
130- Dynamic ( I :: ListBinderExistentialPredicate , I :: Region , DynKind ) ,
130+ Dynamic ( I :: BoundExistentialPredicates , I :: Region , DynKind ) ,
131131
132132 /// The anonymous type of a closure. Used to represent the type of `|a| a`.
133133 ///
134134 /// Closure args contain both the - potentially substituted - generic parameters
135135 /// of its parent and some synthetic parameters. See the documentation for
136136 /// `ClosureArgs` for more details.
137- Closure ( I :: DefId , I :: GenericArgsRef ) ,
137+ Closure ( I :: DefId , I :: GenericArgs ) ,
138138
139139 /// The anonymous type of a generator. Used to represent the type of
140140 /// `|a| yield a`.
141141 ///
142142 /// For more info about generator args, visit the documentation for
143143 /// `GeneratorArgs`.
144- Generator ( I :: DefId , I :: GenericArgsRef , I :: Movability ) ,
144+ Generator ( I :: DefId , I :: GenericArgs , I :: Movability ) ,
145145
146146 /// A type representing the types stored inside a generator.
147147 /// This should only appear as part of the `GeneratorArgs`.
@@ -167,13 +167,13 @@ pub enum TyKind<I: Interner> {
167167 /// }
168168 /// # ;
169169 /// ```
170- GeneratorWitness ( I :: DefId , I :: GenericArgsRef ) ,
170+ GeneratorWitness ( I :: DefId , I :: GenericArgs ) ,
171171
172172 /// The never type `!`.
173173 Never ,
174174
175175 /// A tuple type. For example, `(i32, bool)`.
176- Tuple ( I :: ListTy ) ,
176+ Tuple ( I :: Tys ) ,
177177
178178 /// A projection, opaque type, weak type alias, or inherent associated type.
179179 /// All of these types are represented as pairs of def-id and args, and can
@@ -209,7 +209,7 @@ pub enum TyKind<I: Interner> {
209209 /// to the bound variable's index from the binder from which it was instantiated),
210210 /// and `U` is the universe index in which it is instantiated, or totally omitted
211211 /// if the universe index is zero.
212- Placeholder ( I :: PlaceholderType ) ,
212+ Placeholder ( I :: PlaceholderTy ) ,
213213
214214 /// A type variable used during type checking.
215215 ///
@@ -567,7 +567,7 @@ impl<I: Interner, E: TyEncoder> Encodable<E> for TyKind<I>
567567where
568568 I :: ErrorGuaranteed : Encodable < E > ,
569569 I :: AdtDef : Encodable < E > ,
570- I :: GenericArgsRef : Encodable < E > ,
570+ I :: GenericArgs : Encodable < E > ,
571571 I :: DefId : Encodable < E > ,
572572 I :: Ty : Encodable < E > ,
573573 I :: Const : Encodable < E > ,
@@ -576,13 +576,12 @@ where
576576 I :: Mutability : Encodable < E > ,
577577 I :: Movability : Encodable < E > ,
578578 I :: PolyFnSig : Encodable < E > ,
579- I :: ListBinderExistentialPredicate : Encodable < E > ,
580- I :: BinderListTy : Encodable < E > ,
581- I :: ListTy : Encodable < E > ,
579+ I :: BoundExistentialPredicates : Encodable < E > ,
580+ I :: Tys : Encodable < E > ,
582581 I :: AliasTy : Encodable < E > ,
583582 I :: ParamTy : Encodable < E > ,
584583 I :: BoundTy : Encodable < E > ,
585- I :: PlaceholderType : Encodable < E > ,
584+ I :: PlaceholderTy : Encodable < E > ,
586585 I :: InferTy : Encodable < E > ,
587586 I :: PredicateKind : Encodable < E > ,
588587 I :: AllocId : Encodable < E > ,
@@ -682,7 +681,7 @@ impl<I: Interner, D: TyDecoder<I = I>> Decodable<D> for TyKind<I>
682681where
683682 I :: ErrorGuaranteed : Decodable < D > ,
684683 I :: AdtDef : Decodable < D > ,
685- I :: GenericArgsRef : Decodable < D > ,
684+ I :: GenericArgs : Decodable < D > ,
686685 I :: DefId : Decodable < D > ,
687686 I :: Ty : Decodable < D > ,
688687 I :: Const : Decodable < D > ,
@@ -691,14 +690,13 @@ where
691690 I :: Mutability : Decodable < D > ,
692691 I :: Movability : Decodable < D > ,
693692 I :: PolyFnSig : Decodable < D > ,
694- I :: ListBinderExistentialPredicate : Decodable < D > ,
695- I :: BinderListTy : Decodable < D > ,
696- I :: ListTy : Decodable < D > ,
693+ I :: BoundExistentialPredicates : Decodable < D > ,
694+ I :: Tys : Decodable < D > ,
697695 I :: AliasTy : Decodable < D > ,
698696 I :: ParamTy : Decodable < D > ,
699697 I :: AliasTy : Decodable < D > ,
700698 I :: BoundTy : Decodable < D > ,
701- I :: PlaceholderType : Decodable < D > ,
699+ I :: PlaceholderTy : Decodable < D > ,
702700 I :: InferTy : Decodable < D > ,
703701 I :: PredicateKind : Decodable < D > ,
704702 I :: AllocId : Decodable < D > ,
@@ -748,21 +746,20 @@ impl<CTX: HashStableContext, I: Interner> HashStable<CTX> for TyKind<I>
748746where
749747 I :: AdtDef : HashStable < CTX > ,
750748 I :: DefId : HashStable < CTX > ,
751- I :: GenericArgsRef : HashStable < CTX > ,
749+ I :: GenericArgs : HashStable < CTX > ,
752750 I :: Ty : HashStable < CTX > ,
753751 I :: Const : HashStable < CTX > ,
754752 I :: TypeAndMut : HashStable < CTX > ,
755753 I :: PolyFnSig : HashStable < CTX > ,
756- I :: ListBinderExistentialPredicate : HashStable < CTX > ,
754+ I :: BoundExistentialPredicates : HashStable < CTX > ,
757755 I :: Region : HashStable < CTX > ,
758756 I :: Movability : HashStable < CTX > ,
759757 I :: Mutability : HashStable < CTX > ,
760- I :: BinderListTy : HashStable < CTX > ,
761- I :: ListTy : HashStable < CTX > ,
758+ I :: Tys : HashStable < CTX > ,
762759 I :: AliasTy : HashStable < CTX > ,
763760 I :: BoundTy : HashStable < CTX > ,
764761 I :: ParamTy : HashStable < CTX > ,
765- I :: PlaceholderType : HashStable < CTX > ,
762+ I :: PlaceholderTy : HashStable < CTX > ,
766763 I :: InferTy : HashStable < CTX > ,
767764 I :: ErrorGuaranteed : HashStable < CTX > ,
768765{
@@ -1204,7 +1201,7 @@ pub enum RegionKind<I: Interner> {
12041201 ReStatic ,
12051202
12061203 /// A region variable. Should not exist outside of type inference.
1207- ReVar ( I :: RegionVid ) ,
1204+ ReVar ( I :: InferRegion ) ,
12081205
12091206 /// A placeholder region -- basically, the higher-ranked version of `ReFree`.
12101207 /// Should not exist outside of type inference.
@@ -1239,7 +1236,7 @@ where
12391236 I :: EarlyBoundRegion : Copy ,
12401237 I :: BoundRegion : Copy ,
12411238 I :: FreeRegion : Copy ,
1242- I :: RegionVid : Copy ,
1239+ I :: InferRegion : Copy ,
12431240 I :: PlaceholderRegion : Copy ,
12441241 I :: ErrorGuaranteed : Copy ,
12451242{
@@ -1379,7 +1376,7 @@ where
13791376 I :: EarlyBoundRegion : Encodable < E > ,
13801377 I :: BoundRegion : Encodable < E > ,
13811378 I :: FreeRegion : Encodable < E > ,
1382- I :: RegionVid : Encodable < E > ,
1379+ I :: InferRegion : Encodable < E > ,
13831380 I :: PlaceholderRegion : Encodable < E > ,
13841381{
13851382 fn encode ( & self , e : & mut E ) {
@@ -1414,7 +1411,7 @@ where
14141411 I :: EarlyBoundRegion : Decodable < D > ,
14151412 I :: BoundRegion : Decodable < D > ,
14161413 I :: FreeRegion : Decodable < D > ,
1417- I :: RegionVid : Decodable < D > ,
1414+ I :: InferRegion : Decodable < D > ,
14181415 I :: PlaceholderRegion : Decodable < D > ,
14191416 I :: ErrorGuaranteed : Decodable < D > ,
14201417{
@@ -1445,7 +1442,7 @@ where
14451442 I :: EarlyBoundRegion : HashStable < CTX > ,
14461443 I :: BoundRegion : HashStable < CTX > ,
14471444 I :: FreeRegion : HashStable < CTX > ,
1448- I :: RegionVid : HashStable < CTX > ,
1445+ I :: InferRegion : HashStable < CTX > ,
14491446 I :: PlaceholderRegion : HashStable < CTX > ,
14501447{
14511448 #[ inline]
0 commit comments