@@ -91,8 +91,8 @@ impl<'tcx> fmt::Debug for ty::FnSig<'tcx> {
9191 }
9292}
9393impl < ' 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 > ,
9696 f : & mut core:: fmt:: Formatter < ' _ > ,
9797 ) -> core:: fmt:: Result {
9898 let sig = this. data ;
@@ -147,8 +147,8 @@ impl<'tcx> fmt::Debug for ty::TraitRef<'tcx> {
147147}
148148
149149impl < ' 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 > ,
152152 f : & mut core:: fmt:: Formatter < ' _ > ,
153153 ) -> core:: fmt:: Result {
154154 this. data . fmt ( f)
@@ -240,8 +240,8 @@ impl<'tcx> fmt::Debug for AliasTy<'tcx> {
240240 }
241241}
242242impl < ' 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 > ,
245245 f : & mut core:: fmt:: Formatter < ' _ > ,
246246 ) -> core:: fmt:: Result {
247247 f. debug_struct ( "AliasTy" )
@@ -261,8 +261,8 @@ impl<'tcx> fmt::Debug for ty::InferConst<'tcx> {
261261 }
262262}
263263impl < ' 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 > ,
266266 f : & mut core:: fmt:: Formatter < ' _ > ,
267267 ) -> core:: fmt:: Result {
268268 use ty:: InferConst :: * ;
@@ -285,8 +285,8 @@ impl<'tcx> fmt::Debug for ty::consts::Expr<'tcx> {
285285 }
286286}
287287impl < ' 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 > ,
290290 f : & mut core:: fmt:: Formatter < ' _ > ,
291291 ) -> core:: fmt:: Result {
292292 match this. data {
@@ -318,8 +318,8 @@ impl<'tcx> fmt::Debug for ty::UnevaluatedConst<'tcx> {
318318 }
319319}
320320impl < ' 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 > ,
323323 f : & mut core:: fmt:: Formatter < ' _ > ,
324324 ) -> core:: fmt:: Result {
325325 f. debug_struct ( "UnevaluatedConst" )
@@ -335,8 +335,8 @@ impl<'tcx> fmt::Debug for ty::Const<'tcx> {
335335 }
336336}
337337impl < ' 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 > ,
340340 f : & mut core:: fmt:: Formatter < ' _ > ,
341341 ) -> core:: fmt:: Result {
342342 // 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> {
392392 }
393393}
394394impl < ' 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 > ,
397397 f : & mut core:: fmt:: Formatter < ' _ > ,
398398 ) -> core:: fmt:: Result {
399399 match this. data . unpack ( ) {
@@ -410,17 +410,17 @@ impl<'tcx> fmt::Debug for Region<'tcx> {
410410 }
411411}
412412impl < ' 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 > ,
415415 f : & mut core:: fmt:: Formatter < ' _ > ,
416416 ) -> core:: fmt:: Result {
417417 write ! ( f, "{:?}" , & this. map( |data| data. kind( ) ) )
418418 }
419419}
420420
421421impl < ' 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 > ,
424424 f : & mut core:: fmt:: Formatter < ' _ > ,
425425 ) -> core:: fmt:: Result {
426426 match this. infcx . and_then ( |infcx| infcx. universe_of_lt ( * this. data ) ) {
@@ -431,8 +431,8 @@ impl<'tcx> DebugWithInfcx<TyCtxt<'tcx>> for ty::RegionVid {
431431}
432432
433433impl < ' 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 > ,
436436 f : & mut core:: fmt:: Formatter < ' _ > ,
437437 ) -> core:: fmt:: Result {
438438 f. debug_tuple ( "Binder" )
0 commit comments