@@ -93,8 +93,8 @@ impl<'tcx> fmt::Debug for ty::FnSig<'tcx> {
93
93
}
94
94
}
95
95
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for ty:: FnSig < ' tcx > {
96
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
97
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
96
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
97
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
98
98
f : & mut core:: fmt:: Formatter < ' _ > ,
99
99
) -> core:: fmt:: Result {
100
100
let sig = this. data ;
@@ -149,8 +149,8 @@ impl<'tcx> fmt::Debug for ty::TraitRef<'tcx> {
149
149
}
150
150
151
151
impl < ' tcx > ty:: DebugWithInfcx < TyCtxt < ' tcx > > for Ty < ' tcx > {
152
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
153
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
152
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
153
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
154
154
f : & mut core:: fmt:: Formatter < ' _ > ,
155
155
) -> core:: fmt:: Result {
156
156
this. data . fmt ( f)
@@ -242,8 +242,8 @@ impl<'tcx> fmt::Debug for AliasTy<'tcx> {
242
242
}
243
243
}
244
244
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for AliasTy < ' tcx > {
245
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
246
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
245
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
246
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
247
247
f : & mut core:: fmt:: Formatter < ' _ > ,
248
248
) -> core:: fmt:: Result {
249
249
f. debug_struct ( "AliasTy" )
@@ -263,8 +263,8 @@ impl<'tcx> fmt::Debug for ty::InferConst<'tcx> {
263
263
}
264
264
}
265
265
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for ty:: InferConst < ' tcx > {
266
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
267
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
266
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
267
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
268
268
f : & mut core:: fmt:: Formatter < ' _ > ,
269
269
) -> core:: fmt:: Result {
270
270
use ty:: InferConst :: * ;
@@ -287,8 +287,8 @@ impl<'tcx> fmt::Debug for ty::consts::Expr<'tcx> {
287
287
}
288
288
}
289
289
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for ty:: consts:: Expr < ' tcx > {
290
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
291
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
290
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
291
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
292
292
f : & mut core:: fmt:: Formatter < ' _ > ,
293
293
) -> core:: fmt:: Result {
294
294
match this. data {
@@ -320,8 +320,8 @@ impl<'tcx> fmt::Debug for ty::UnevaluatedConst<'tcx> {
320
320
}
321
321
}
322
322
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for ty:: UnevaluatedConst < ' tcx > {
323
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
324
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
323
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
324
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
325
325
f : & mut core:: fmt:: Formatter < ' _ > ,
326
326
) -> core:: fmt:: Result {
327
327
f. debug_struct ( "UnevaluatedConst" )
@@ -337,8 +337,8 @@ impl<'tcx> fmt::Debug for ty::Const<'tcx> {
337
337
}
338
338
}
339
339
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for ty:: Const < ' tcx > {
340
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
341
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
340
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
341
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
342
342
f : & mut core:: fmt:: Formatter < ' _ > ,
343
343
) -> core:: fmt:: Result {
344
344
// If this is a value, we spend some effort to make it look nice.
@@ -395,8 +395,8 @@ impl<'tcx> fmt::Debug for GenericArg<'tcx> {
395
395
}
396
396
}
397
397
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for GenericArg < ' tcx > {
398
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
399
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
398
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
399
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
400
400
f : & mut core:: fmt:: Formatter < ' _ > ,
401
401
) -> core:: fmt:: Result {
402
402
match this. data . unpack ( ) {
@@ -413,17 +413,17 @@ impl<'tcx> fmt::Debug for Region<'tcx> {
413
413
}
414
414
}
415
415
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for Region < ' tcx > {
416
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
417
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
416
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
417
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
418
418
f : & mut core:: fmt:: Formatter < ' _ > ,
419
419
) -> core:: fmt:: Result {
420
420
write ! ( f, "{:?}" , & this. map( |data| data. kind( ) ) )
421
421
}
422
422
}
423
423
424
424
impl < ' tcx > DebugWithInfcx < TyCtxt < ' tcx > > for ty:: RegionVid {
425
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
426
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
425
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
426
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
427
427
f : & mut core:: fmt:: Formatter < ' _ > ,
428
428
) -> core:: fmt:: Result {
429
429
match this. infcx . and_then ( |infcx| infcx. universe_of_lt ( * this. data ) ) {
@@ -434,8 +434,8 @@ impl<'tcx> DebugWithInfcx<TyCtxt<'tcx>> for ty::RegionVid {
434
434
}
435
435
436
436
impl < ' tcx , T : DebugWithInfcx < TyCtxt < ' tcx > > > DebugWithInfcx < TyCtxt < ' tcx > > for ty:: Binder < ' tcx , T > {
437
- fn fmt < InfCtx : InferCtxtLike < TyCtxt < ' tcx > > > (
438
- this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , InfCtx , & Self > ,
437
+ fn fmt < Infcx : InferCtxtLike < TyCtxt < ' tcx > > > (
438
+ this : OptWithInfcx < ' _ , TyCtxt < ' tcx > , Infcx , & Self > ,
439
439
f : & mut core:: fmt:: Formatter < ' _ > ,
440
440
) -> core:: fmt:: Result {
441
441
f. debug_tuple ( "Binder" )
0 commit comments