@@ -91,8 +91,8 @@ impl<'tcx> fmt::Debug for ty::FnSig<'tcx> {
91
91
}
92
92
}
93
93
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for ty:: FnSig < ' tcx > {
94
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
95
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
94
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
95
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
96
96
f : & mut core:: fmt:: Formatter < ' _ > ,
97
97
) -> core:: fmt:: Result {
98
98
let sig = this. data ;
@@ -147,8 +147,8 @@ impl<'tcx> fmt::Debug for ty::TraitRef<'tcx> {
147
147
}
148
148
149
149
impl < ' tcx > ty:: DebugWithInfcx < TyCtxt < ' tcx > > for Ty < ' tcx > {
150
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
151
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
150
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
151
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
152
152
f : & mut core:: fmt:: Formatter < ' _ > ,
153
153
) -> core:: fmt:: Result {
154
154
this. data . fmt ( f)
@@ -240,8 +240,8 @@ impl<'tcx> fmt::Debug for AliasTy<'tcx> {
240
240
}
241
241
}
242
242
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for AliasTy < ' tcx > {
243
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
244
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
243
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
244
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
245
245
f : & mut core:: fmt:: Formatter < ' _ > ,
246
246
) -> core:: fmt:: Result {
247
247
f. debug_struct ( "AliasTy" )
@@ -261,8 +261,8 @@ impl<'tcx> fmt::Debug for ty::InferConst<'tcx> {
261
261
}
262
262
}
263
263
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for ty:: InferConst < ' tcx > {
264
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
265
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
264
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
265
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
266
266
f : & mut core:: fmt:: Formatter < ' _ > ,
267
267
) -> core:: fmt:: Result {
268
268
use ty:: InferConst :: * ;
@@ -285,8 +285,8 @@ impl<'tcx> fmt::Debug for ty::consts::Expr<'tcx> {
285
285
}
286
286
}
287
287
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for ty:: consts:: Expr < ' tcx > {
288
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
289
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
288
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
289
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
290
290
f : & mut core:: fmt:: Formatter < ' _ > ,
291
291
) -> core:: fmt:: Result {
292
292
match this. data {
@@ -318,8 +318,8 @@ impl<'tcx> fmt::Debug for ty::UnevaluatedConst<'tcx> {
318
318
}
319
319
}
320
320
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for ty:: UnevaluatedConst < ' tcx > {
321
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
322
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
321
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
322
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
323
323
f : & mut core:: fmt:: Formatter < ' _ > ,
324
324
) -> core:: fmt:: Result {
325
325
f. debug_struct ( "UnevaluatedConst" )
@@ -335,8 +335,8 @@ impl<'tcx> fmt::Debug for ty::Const<'tcx> {
335
335
}
336
336
}
337
337
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for ty:: Const < ' tcx > {
338
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
339
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
338
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
339
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
340
340
f : & mut core:: fmt:: Formatter < ' _ > ,
341
341
) -> core:: fmt:: Result {
342
342
// If this is a value, we spend some effort to make it look nice.
@@ -392,8 +392,8 @@ impl<'tcx> fmt::Debug for GenericArg<'tcx> {
392
392
}
393
393
}
394
394
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for GenericArg < ' tcx > {
395
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
396
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
395
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
396
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
397
397
f : & mut core:: fmt:: Formatter < ' _ > ,
398
398
) -> core:: fmt:: Result {
399
399
match this. data . unpack ( ) {
@@ -410,17 +410,17 @@ impl<'tcx> fmt::Debug for Region<'tcx> {
410
410
}
411
411
}
412
412
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for Region < ' tcx > {
413
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
414
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
413
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
414
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
415
415
f : & mut core:: fmt:: Formatter < ' _ > ,
416
416
) -> core:: fmt:: Result {
417
417
write ! ( f, "{:?}" , & this. map( |data| data. kind( ) ) )
418
418
}
419
419
}
420
420
421
421
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for ty:: RegionVid {
422
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
423
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
422
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
423
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
424
424
f : & mut core:: fmt:: Formatter < ' _ > ,
425
425
) -> core:: fmt:: Result {
426
426
match this. infcx . and_then ( |infcx| infcx. universe_of_lt ( * this. data ) ) {
@@ -431,8 +431,8 @@ impl<'tcx> DebugWithInfcx<TyCtxt<'tcx>> for ty::RegionVid {
431
431
}
432
432
433
433
impl < ' tcx , T : DebugWithInfcx < TyCtxt < ' tcx > > > DebugWithInfcx < TyCtxt < ' tcx > > for ty:: Binder < ' tcx , T > {
434
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
435
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
434
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
435
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
436
436
f : & mut core:: fmt:: Formatter < ' _ > ,
437
437
) -> core:: fmt:: Result {
438
438
f. debug_tuple ( "Binder" )
0 commit comments