@@ -79,7 +79,7 @@ pub enum TyKind<I: Interner> {
79
79
///
80
80
/// Note that generic parameters in fields only get lazily substituted
81
81
/// 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 ) ,
83
83
84
84
/// An unsized FFI type that is opaque to Rust. Written as `extern type T`.
85
85
Foreign ( I :: DefId ) ,
@@ -111,7 +111,7 @@ pub enum TyKind<I: Interner> {
111
111
/// fn foo() -> i32 { 1 }
112
112
/// let bar = foo; // bar: fn() -> i32 {foo}
113
113
/// ```
114
- FnDef ( I :: DefId , I :: GenericArgsRef ) ,
114
+ FnDef ( I :: DefId , I :: GenericArgs ) ,
115
115
116
116
/// A pointer to a function. Written as `fn() -> i32`.
117
117
///
@@ -127,21 +127,21 @@ pub enum TyKind<I: Interner> {
127
127
FnPtr ( I :: PolyFnSig ) ,
128
128
129
129
/// 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 ) ,
131
131
132
132
/// The anonymous type of a closure. Used to represent the type of `|a| a`.
133
133
///
134
134
/// Closure args contain both the - potentially substituted - generic parameters
135
135
/// of its parent and some synthetic parameters. See the documentation for
136
136
/// `ClosureArgs` for more details.
137
- Closure ( I :: DefId , I :: GenericArgsRef ) ,
137
+ Closure ( I :: DefId , I :: GenericArgs ) ,
138
138
139
139
/// The anonymous type of a generator. Used to represent the type of
140
140
/// `|a| yield a`.
141
141
///
142
142
/// For more info about generator args, visit the documentation for
143
143
/// `GeneratorArgs`.
144
- Generator ( I :: DefId , I :: GenericArgsRef , I :: Movability ) ,
144
+ Generator ( I :: DefId , I :: GenericArgs , I :: Movability ) ,
145
145
146
146
/// A type representing the types stored inside a generator.
147
147
/// This should only appear as part of the `GeneratorArgs`.
@@ -167,13 +167,13 @@ pub enum TyKind<I: Interner> {
167
167
/// }
168
168
/// # ;
169
169
/// ```
170
- GeneratorWitness ( I :: DefId , I :: GenericArgsRef ) ,
170
+ GeneratorWitness ( I :: DefId , I :: GenericArgs ) ,
171
171
172
172
/// The never type `!`.
173
173
Never ,
174
174
175
175
/// A tuple type. For example, `(i32, bool)`.
176
- Tuple ( I :: ListTy ) ,
176
+ Tuple ( I :: Tys ) ,
177
177
178
178
/// A projection, opaque type, weak type alias, or inherent associated type.
179
179
/// All of these types are represented as pairs of def-id and args, and can
@@ -209,7 +209,7 @@ pub enum TyKind<I: Interner> {
209
209
/// to the bound variable's index from the binder from which it was instantiated),
210
210
/// and `U` is the universe index in which it is instantiated, or totally omitted
211
211
/// if the universe index is zero.
212
- Placeholder ( I :: PlaceholderType ) ,
212
+ Placeholder ( I :: PlaceholderTy ) ,
213
213
214
214
/// A type variable used during type checking.
215
215
///
@@ -567,7 +567,7 @@ impl<I: Interner, E: TyEncoder> Encodable<E> for TyKind<I>
567
567
where
568
568
I :: ErrorGuaranteed : Encodable < E > ,
569
569
I :: AdtDef : Encodable < E > ,
570
- I :: GenericArgsRef : Encodable < E > ,
570
+ I :: GenericArgs : Encodable < E > ,
571
571
I :: DefId : Encodable < E > ,
572
572
I :: Ty : Encodable < E > ,
573
573
I :: Const : Encodable < E > ,
@@ -576,13 +576,12 @@ where
576
576
I :: Mutability : Encodable < E > ,
577
577
I :: Movability : Encodable < E > ,
578
578
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 > ,
582
581
I :: AliasTy : Encodable < E > ,
583
582
I :: ParamTy : Encodable < E > ,
584
583
I :: BoundTy : Encodable < E > ,
585
- I :: PlaceholderType : Encodable < E > ,
584
+ I :: PlaceholderTy : Encodable < E > ,
586
585
I :: InferTy : Encodable < E > ,
587
586
I :: PredicateKind : Encodable < E > ,
588
587
I :: AllocId : Encodable < E > ,
@@ -682,7 +681,7 @@ impl<I: Interner, D: TyDecoder<I = I>> Decodable<D> for TyKind<I>
682
681
where
683
682
I :: ErrorGuaranteed : Decodable < D > ,
684
683
I :: AdtDef : Decodable < D > ,
685
- I :: GenericArgsRef : Decodable < D > ,
684
+ I :: GenericArgs : Decodable < D > ,
686
685
I :: DefId : Decodable < D > ,
687
686
I :: Ty : Decodable < D > ,
688
687
I :: Const : Decodable < D > ,
@@ -691,14 +690,13 @@ where
691
690
I :: Mutability : Decodable < D > ,
692
691
I :: Movability : Decodable < D > ,
693
692
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 > ,
697
695
I :: AliasTy : Decodable < D > ,
698
696
I :: ParamTy : Decodable < D > ,
699
697
I :: AliasTy : Decodable < D > ,
700
698
I :: BoundTy : Decodable < D > ,
701
- I :: PlaceholderType : Decodable < D > ,
699
+ I :: PlaceholderTy : Decodable < D > ,
702
700
I :: InferTy : Decodable < D > ,
703
701
I :: PredicateKind : Decodable < D > ,
704
702
I :: AllocId : Decodable < D > ,
@@ -748,21 +746,20 @@ impl<CTX: HashStableContext, I: Interner> HashStable<CTX> for TyKind<I>
748
746
where
749
747
I :: AdtDef : HashStable < CTX > ,
750
748
I :: DefId : HashStable < CTX > ,
751
- I :: GenericArgsRef : HashStable < CTX > ,
749
+ I :: GenericArgs : HashStable < CTX > ,
752
750
I :: Ty : HashStable < CTX > ,
753
751
I :: Const : HashStable < CTX > ,
754
752
I :: TypeAndMut : HashStable < CTX > ,
755
753
I :: PolyFnSig : HashStable < CTX > ,
756
- I :: ListBinderExistentialPredicate : HashStable < CTX > ,
754
+ I :: BoundExistentialPredicates : HashStable < CTX > ,
757
755
I :: Region : HashStable < CTX > ,
758
756
I :: Movability : HashStable < CTX > ,
759
757
I :: Mutability : HashStable < CTX > ,
760
- I :: BinderListTy : HashStable < CTX > ,
761
- I :: ListTy : HashStable < CTX > ,
758
+ I :: Tys : HashStable < CTX > ,
762
759
I :: AliasTy : HashStable < CTX > ,
763
760
I :: BoundTy : HashStable < CTX > ,
764
761
I :: ParamTy : HashStable < CTX > ,
765
- I :: PlaceholderType : HashStable < CTX > ,
762
+ I :: PlaceholderTy : HashStable < CTX > ,
766
763
I :: InferTy : HashStable < CTX > ,
767
764
I :: ErrorGuaranteed : HashStable < CTX > ,
768
765
{
@@ -1204,7 +1201,7 @@ pub enum RegionKind<I: Interner> {
1204
1201
ReStatic ,
1205
1202
1206
1203
/// A region variable. Should not exist outside of type inference.
1207
- ReVar ( I :: RegionVid ) ,
1204
+ ReVar ( I :: InferRegion ) ,
1208
1205
1209
1206
/// A placeholder region -- basically, the higher-ranked version of `ReFree`.
1210
1207
/// Should not exist outside of type inference.
@@ -1239,7 +1236,7 @@ where
1239
1236
I :: EarlyBoundRegion : Copy ,
1240
1237
I :: BoundRegion : Copy ,
1241
1238
I :: FreeRegion : Copy ,
1242
- I :: RegionVid : Copy ,
1239
+ I :: InferRegion : Copy ,
1243
1240
I :: PlaceholderRegion : Copy ,
1244
1241
I :: ErrorGuaranteed : Copy ,
1245
1242
{
@@ -1379,7 +1376,7 @@ where
1379
1376
I :: EarlyBoundRegion : Encodable < E > ,
1380
1377
I :: BoundRegion : Encodable < E > ,
1381
1378
I :: FreeRegion : Encodable < E > ,
1382
- I :: RegionVid : Encodable < E > ,
1379
+ I :: InferRegion : Encodable < E > ,
1383
1380
I :: PlaceholderRegion : Encodable < E > ,
1384
1381
{
1385
1382
fn encode ( & self , e : & mut E ) {
@@ -1414,7 +1411,7 @@ where
1414
1411
I :: EarlyBoundRegion : Decodable < D > ,
1415
1412
I :: BoundRegion : Decodable < D > ,
1416
1413
I :: FreeRegion : Decodable < D > ,
1417
- I :: RegionVid : Decodable < D > ,
1414
+ I :: InferRegion : Decodable < D > ,
1418
1415
I :: PlaceholderRegion : Decodable < D > ,
1419
1416
I :: ErrorGuaranteed : Decodable < D > ,
1420
1417
{
@@ -1445,7 +1442,7 @@ where
1445
1442
I :: EarlyBoundRegion : HashStable < CTX > ,
1446
1443
I :: BoundRegion : HashStable < CTX > ,
1447
1444
I :: FreeRegion : HashStable < CTX > ,
1448
- I :: RegionVid : HashStable < CTX > ,
1445
+ I :: InferRegion : HashStable < CTX > ,
1449
1446
I :: PlaceholderRegion : HashStable < CTX > ,
1450
1447
{
1451
1448
#[ inline]
0 commit comments