@@ -93,8 +93,8 @@ impl<'tcx> fmt::Debug for ty::FnSig<'tcx> {
9393 }
9494}
9595impl < ' 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 > ,
9898 f : & mut core:: fmt:: Formatter < ' _ > ,
9999 ) -> core:: fmt:: Result {
100100 let sig = this. data ;
@@ -149,8 +149,8 @@ impl<'tcx> fmt::Debug for ty::TraitRef<'tcx> {
149149}
150150
151151impl < ' 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 > ,
154154 f : & mut core:: fmt:: Formatter < ' _ > ,
155155 ) -> core:: fmt:: Result {
156156 this. data . fmt ( f)
@@ -242,8 +242,8 @@ impl<'tcx> fmt::Debug for AliasTy<'tcx> {
242242 }
243243}
244244impl < ' 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 > ,
247247 f : & mut core:: fmt:: Formatter < ' _ > ,
248248 ) -> core:: fmt:: Result {
249249 f. debug_struct ( "AliasTy" )
@@ -263,8 +263,8 @@ impl<'tcx> fmt::Debug for ty::InferConst<'tcx> {
263263 }
264264}
265265impl < ' 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 > ,
268268 f : & mut core:: fmt:: Formatter < ' _ > ,
269269 ) -> core:: fmt:: Result {
270270 use ty:: InferConst :: * ;
@@ -287,8 +287,8 @@ impl<'tcx> fmt::Debug for ty::consts::Expr<'tcx> {
287287 }
288288}
289289impl < ' 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 > ,
292292 f : & mut core:: fmt:: Formatter < ' _ > ,
293293 ) -> core:: fmt:: Result {
294294 match this. data {
@@ -320,8 +320,8 @@ impl<'tcx> fmt::Debug for ty::UnevaluatedConst<'tcx> {
320320 }
321321}
322322impl < ' 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 > ,
325325 f : & mut core:: fmt:: Formatter < ' _ > ,
326326 ) -> core:: fmt:: Result {
327327 f. debug_struct ( "UnevaluatedConst" )
@@ -337,8 +337,8 @@ impl<'tcx> fmt::Debug for ty::Const<'tcx> {
337337 }
338338}
339339impl < ' 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 > ,
342342 f : & mut core:: fmt:: Formatter < ' _ > ,
343343 ) -> core:: fmt:: Result {
344344 // 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> {
395395 }
396396}
397397impl < ' 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 > ,
400400 f : & mut core:: fmt:: Formatter < ' _ > ,
401401 ) -> core:: fmt:: Result {
402402 match this. data . unpack ( ) {
@@ -413,17 +413,17 @@ impl<'tcx> fmt::Debug for Region<'tcx> {
413413 }
414414}
415415impl < ' 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 > ,
418418 f : & mut core:: fmt:: Formatter < ' _ > ,
419419 ) -> core:: fmt:: Result {
420420 write ! ( f, "{:?}" , & this. map( |data| data. kind( ) ) )
421421 }
422422}
423423
424424impl < ' 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 > ,
427427 f : & mut core:: fmt:: Formatter < ' _ > ,
428428 ) -> core:: fmt:: Result {
429429 match this. infcx . and_then ( |infcx| infcx. universe_of_lt ( * this. data ) ) {
@@ -434,8 +434,8 @@ impl<'tcx> DebugWithInfcx<TyCtxt<'tcx>> for ty::RegionVid {
434434}
435435
436436impl < ' 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 > ,
439439 f : & mut core:: fmt:: Formatter < ' _ > ,
440440 ) -> core:: fmt:: Result {
441441 f. debug_tuple ( "Binder" )
0 commit comments