@@ -1810,13 +1810,13 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
1810
1810
// say nothing; a candidate may be added by
1811
1811
// `assemble_candidates_from_object_ty`.
1812
1812
}
1813
- ty:: TyForeign ( ..) => {
1813
+ ty:: Foreign ( ..) => {
1814
1814
// Since the contents of foreign types is unknown,
1815
1815
// we don't add any `..` impl. Default traits could
1816
1816
// still be provided by a manual implementation for
1817
1817
// this trait and type.
1818
1818
}
1819
- ty:: TyParam ( ..) |
1819
+ ty:: Param ( ..) |
1820
1820
ty:: Projection ( ..) => {
1821
1821
// In these cases, we don't know what the actual
1822
1822
// type is. Therefore, we cannot break it down
@@ -2189,7 +2189,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
2189
2189
Where ( ty:: Binder :: dummy ( Vec :: new ( ) ) )
2190
2190
}
2191
2191
2192
- ty:: TyStr | ty:: Slice ( _) | ty:: Dynamic ( ..) | ty:: TyForeign ( ..) => None ,
2192
+ ty:: TyStr | ty:: Slice ( _) | ty:: Dynamic ( ..) | ty:: Foreign ( ..) => None ,
2193
2193
2194
2194
ty:: Tuple ( tys) => {
2195
2195
Where ( ty:: Binder :: bind ( tys. last ( ) . into_iter ( ) . cloned ( ) . collect ( ) ) )
@@ -2203,7 +2203,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
2203
2203
) )
2204
2204
}
2205
2205
2206
- ty:: Projection ( _) | ty:: TyParam ( _) | ty:: Anon ( ..) => None ,
2206
+ ty:: Projection ( _) | ty:: Param ( _) | ty:: Anon ( ..) => None ,
2207
2207
ty:: Infer ( ty:: TyVar ( _) ) => Ambiguous ,
2208
2208
2209
2209
ty:: Infer ( ty:: CanonicalTy ( _) ) |
@@ -2239,7 +2239,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
2239
2239
}
2240
2240
2241
2241
ty:: Dynamic ( ..) | ty:: TyStr | ty:: Slice ( ..) |
2242
- ty:: Generator ( ..) | ty:: GeneratorWitness ( ..) | ty:: TyForeign ( ..) |
2242
+ ty:: Generator ( ..) | ty:: GeneratorWitness ( ..) | ty:: Foreign ( ..) |
2243
2243
ty:: Ref ( _, _, hir:: MutMutable ) => {
2244
2244
None
2245
2245
}
@@ -2265,7 +2265,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
2265
2265
}
2266
2266
}
2267
2267
2268
- ty:: Adt ( ..) | ty:: Projection ( ..) | ty:: TyParam ( ..) | ty:: Anon ( ..) => {
2268
+ ty:: Adt ( ..) | ty:: Projection ( ..) | ty:: Param ( ..) | ty:: Anon ( ..) => {
2269
2269
// Fallback to whatever user-defined impls exist in this case.
2270
2270
None
2271
2271
}
@@ -2316,8 +2316,8 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
2316
2316
}
2317
2317
2318
2318
ty:: Dynamic ( ..) |
2319
- ty:: TyParam ( ..) |
2320
- ty:: TyForeign ( ..) |
2319
+ ty:: Param ( ..) |
2320
+ ty:: Foreign ( ..) |
2321
2321
ty:: Projection ( ..) |
2322
2322
ty:: Infer ( ty:: CanonicalTy ( _) ) |
2323
2323
ty:: Infer ( ty:: TyVar ( _) ) |
@@ -3072,7 +3072,7 @@ impl<'cx, 'gcx, 'tcx> SelectionContext<'cx, 'gcx, 'tcx> {
3072
3072
let mut ty_params = BitArray :: new ( substs_a. types ( ) . count ( ) ) ;
3073
3073
let mut found = false ;
3074
3074
for ty in field. walk ( ) {
3075
- if let ty:: TyParam ( p) = ty. sty {
3075
+ if let ty:: Param ( p) = ty. sty {
3076
3076
ty_params. insert ( p. idx as usize ) ;
3077
3077
found = true ;
3078
3078
}
0 commit comments