@@ -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,12 +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 :: ListTy : Encodable < E > ,
579+ I :: BoundExistentialPredicates : Encodable < E > ,
580+ I :: Tys : Encodable < E > ,
581581 I :: AliasTy : Encodable < E > ,
582582 I :: ParamTy : Encodable < E > ,
583583 I :: BoundTy : Encodable < E > ,
584- I :: PlaceholderType : Encodable < E > ,
584+ I :: PlaceholderTy : Encodable < E > ,
585585 I :: InferTy : Encodable < E > ,
586586 I :: PredicateKind : Encodable < E > ,
587587 I :: AllocId : Encodable < E > ,
@@ -681,7 +681,7 @@ impl<I: Interner, D: TyDecoder<I = I>> Decodable<D> for TyKind<I>
681681where
682682 I :: ErrorGuaranteed : Decodable < D > ,
683683 I :: AdtDef : Decodable < D > ,
684- I :: GenericArgsRef : Decodable < D > ,
684+ I :: GenericArgs : Decodable < D > ,
685685 I :: DefId : Decodable < D > ,
686686 I :: Ty : Decodable < D > ,
687687 I :: Const : Decodable < D > ,
@@ -690,13 +690,13 @@ where
690690 I :: Mutability : Decodable < D > ,
691691 I :: Movability : Decodable < D > ,
692692 I :: PolyFnSig : Decodable < D > ,
693- I :: ListBinderExistentialPredicate : Decodable < D > ,
694- I :: ListTy : Decodable < D > ,
693+ I :: BoundExistentialPredicates : Decodable < D > ,
694+ I :: Tys : Decodable < D > ,
695695 I :: AliasTy : Decodable < D > ,
696696 I :: ParamTy : Decodable < D > ,
697697 I :: AliasTy : Decodable < D > ,
698698 I :: BoundTy : Decodable < D > ,
699- I :: PlaceholderType : Decodable < D > ,
699+ I :: PlaceholderTy : Decodable < D > ,
700700 I :: InferTy : Decodable < D > ,
701701 I :: PredicateKind : Decodable < D > ,
702702 I :: AllocId : Decodable < D > ,
@@ -746,20 +746,20 @@ impl<CTX: HashStableContext, I: Interner> HashStable<CTX> for TyKind<I>
746746where
747747 I :: AdtDef : HashStable < CTX > ,
748748 I :: DefId : HashStable < CTX > ,
749- I :: GenericArgsRef : HashStable < CTX > ,
749+ I :: GenericArgs : HashStable < CTX > ,
750750 I :: Ty : HashStable < CTX > ,
751751 I :: Const : HashStable < CTX > ,
752752 I :: TypeAndMut : HashStable < CTX > ,
753753 I :: PolyFnSig : HashStable < CTX > ,
754- I :: ListBinderExistentialPredicate : HashStable < CTX > ,
754+ I :: BoundExistentialPredicates : HashStable < CTX > ,
755755 I :: Region : HashStable < CTX > ,
756756 I :: Movability : HashStable < CTX > ,
757757 I :: Mutability : HashStable < CTX > ,
758- I :: ListTy : HashStable < CTX > ,
758+ I :: Tys : HashStable < CTX > ,
759759 I :: AliasTy : HashStable < CTX > ,
760760 I :: BoundTy : HashStable < CTX > ,
761761 I :: ParamTy : HashStable < CTX > ,
762- I :: PlaceholderType : HashStable < CTX > ,
762+ I :: PlaceholderTy : HashStable < CTX > ,
763763 I :: InferTy : HashStable < CTX > ,
764764 I :: ErrorGuaranteed : HashStable < CTX > ,
765765{
@@ -1201,7 +1201,7 @@ pub enum RegionKind<I: Interner> {
12011201 ReStatic ,
12021202
12031203 /// A region variable. Should not exist outside of type inference.
1204- ReVar ( I :: RegionVid ) ,
1204+ ReVar ( I :: InferRegion ) ,
12051205
12061206 /// A placeholder region -- basically, the higher-ranked version of `ReFree`.
12071207 /// Should not exist outside of type inference.
@@ -1236,7 +1236,7 @@ where
12361236 I :: EarlyBoundRegion : Copy ,
12371237 I :: BoundRegion : Copy ,
12381238 I :: FreeRegion : Copy ,
1239- I :: RegionVid : Copy ,
1239+ I :: InferRegion : Copy ,
12401240 I :: PlaceholderRegion : Copy ,
12411241 I :: ErrorGuaranteed : Copy ,
12421242{
@@ -1376,7 +1376,7 @@ where
13761376 I :: EarlyBoundRegion : Encodable < E > ,
13771377 I :: BoundRegion : Encodable < E > ,
13781378 I :: FreeRegion : Encodable < E > ,
1379- I :: RegionVid : Encodable < E > ,
1379+ I :: InferRegion : Encodable < E > ,
13801380 I :: PlaceholderRegion : Encodable < E > ,
13811381{
13821382 fn encode ( & self , e : & mut E ) {
@@ -1411,7 +1411,7 @@ where
14111411 I :: EarlyBoundRegion : Decodable < D > ,
14121412 I :: BoundRegion : Decodable < D > ,
14131413 I :: FreeRegion : Decodable < D > ,
1414- I :: RegionVid : Decodable < D > ,
1414+ I :: InferRegion : Decodable < D > ,
14151415 I :: PlaceholderRegion : Decodable < D > ,
14161416 I :: ErrorGuaranteed : Decodable < D > ,
14171417{
@@ -1442,7 +1442,7 @@ where
14421442 I :: EarlyBoundRegion : HashStable < CTX > ,
14431443 I :: BoundRegion : HashStable < CTX > ,
14441444 I :: FreeRegion : HashStable < CTX > ,
1445- I :: RegionVid : HashStable < CTX > ,
1445+ I :: InferRegion : HashStable < CTX > ,
14461446 I :: PlaceholderRegion : HashStable < CTX > ,
14471447{
14481448 #[ inline]
0 commit comments