@@ -308,25 +308,22 @@ impl<'tcx> ToTrace<'tcx> for Ty<'tcx> {
308
308
fn to_trace ( cause : & ObligationCause < ' tcx > , a : Self , b : Self ) -> TypeTrace < ' tcx > {
309
309
TypeTrace {
310
310
cause : cause. clone ( ) ,
311
- values : ValuePairs :: Terms ( ExpectedFound :: new ( true , a. into ( ) , b. into ( ) ) ) ,
311
+ values : ValuePairs :: Terms ( ExpectedFound :: new ( a. into ( ) , b. into ( ) ) ) ,
312
312
}
313
313
}
314
314
}
315
315
316
316
impl < ' tcx > ToTrace < ' tcx > for ty:: Region < ' tcx > {
317
317
fn to_trace ( cause : & ObligationCause < ' tcx > , a : Self , b : Self ) -> TypeTrace < ' tcx > {
318
- TypeTrace {
319
- cause : cause. clone ( ) ,
320
- values : ValuePairs :: Regions ( ExpectedFound :: new ( true , a, b) ) ,
321
- }
318
+ TypeTrace { cause : cause. clone ( ) , values : ValuePairs :: Regions ( ExpectedFound :: new ( a, b) ) }
322
319
}
323
320
}
324
321
325
322
impl < ' tcx > ToTrace < ' tcx > for Const < ' tcx > {
326
323
fn to_trace ( cause : & ObligationCause < ' tcx > , a : Self , b : Self ) -> TypeTrace < ' tcx > {
327
324
TypeTrace {
328
325
cause : cause. clone ( ) ,
329
- values : ValuePairs :: Terms ( ExpectedFound :: new ( true , a. into ( ) , b. into ( ) ) ) ,
326
+ values : ValuePairs :: Terms ( ExpectedFound :: new ( a. into ( ) , b. into ( ) ) ) ,
330
327
}
331
328
}
332
329
}
@@ -337,13 +334,13 @@ impl<'tcx> ToTrace<'tcx> for ty::GenericArg<'tcx> {
337
334
cause : cause. clone ( ) ,
338
335
values : match ( a. unpack ( ) , b. unpack ( ) ) {
339
336
( GenericArgKind :: Lifetime ( a) , GenericArgKind :: Lifetime ( b) ) => {
340
- ValuePairs :: Regions ( ExpectedFound :: new ( true , a, b) )
337
+ ValuePairs :: Regions ( ExpectedFound :: new ( a, b) )
341
338
}
342
339
( GenericArgKind :: Type ( a) , GenericArgKind :: Type ( b) ) => {
343
- ValuePairs :: Terms ( ExpectedFound :: new ( true , a. into ( ) , b. into ( ) ) )
340
+ ValuePairs :: Terms ( ExpectedFound :: new ( a. into ( ) , b. into ( ) ) )
344
341
}
345
342
( GenericArgKind :: Const ( a) , GenericArgKind :: Const ( b) ) => {
346
- ValuePairs :: Terms ( ExpectedFound :: new ( true , a. into ( ) , b. into ( ) ) )
343
+ ValuePairs :: Terms ( ExpectedFound :: new ( a. into ( ) , b. into ( ) ) )
347
344
}
348
345
_ => bug ! ( "relating different kinds: {a:?} {b:?}" ) ,
349
346
} ,
@@ -353,37 +350,28 @@ impl<'tcx> ToTrace<'tcx> for ty::GenericArg<'tcx> {
353
350
354
351
impl < ' tcx > ToTrace < ' tcx > for ty:: Term < ' tcx > {
355
352
fn to_trace ( cause : & ObligationCause < ' tcx > , a : Self , b : Self ) -> TypeTrace < ' tcx > {
356
- TypeTrace {
357
- cause : cause. clone ( ) ,
358
- values : ValuePairs :: Terms ( ExpectedFound :: new ( true , a, b) ) ,
359
- }
353
+ TypeTrace { cause : cause. clone ( ) , values : ValuePairs :: Terms ( ExpectedFound :: new ( a, b) ) }
360
354
}
361
355
}
362
356
363
357
impl < ' tcx > ToTrace < ' tcx > for ty:: TraitRef < ' tcx > {
364
358
fn to_trace ( cause : & ObligationCause < ' tcx > , a : Self , b : Self ) -> TypeTrace < ' tcx > {
365
- TypeTrace {
366
- cause : cause. clone ( ) ,
367
- values : ValuePairs :: TraitRefs ( ExpectedFound :: new ( true , a, b) ) ,
368
- }
359
+ TypeTrace { cause : cause. clone ( ) , values : ValuePairs :: TraitRefs ( ExpectedFound :: new ( a, b) ) }
369
360
}
370
361
}
371
362
372
363
impl < ' tcx > ToTrace < ' tcx > for ty:: AliasTy < ' tcx > {
373
364
fn to_trace ( cause : & ObligationCause < ' tcx > , a : Self , b : Self ) -> TypeTrace < ' tcx > {
374
365
TypeTrace {
375
366
cause : cause. clone ( ) ,
376
- values : ValuePairs :: Aliases ( ExpectedFound :: new ( true , a. into ( ) , b. into ( ) ) ) ,
367
+ values : ValuePairs :: Aliases ( ExpectedFound :: new ( a. into ( ) , b. into ( ) ) ) ,
377
368
}
378
369
}
379
370
}
380
371
381
372
impl < ' tcx > ToTrace < ' tcx > for ty:: AliasTerm < ' tcx > {
382
373
fn to_trace ( cause : & ObligationCause < ' tcx > , a : Self , b : Self ) -> TypeTrace < ' tcx > {
383
- TypeTrace {
384
- cause : cause. clone ( ) ,
385
- values : ValuePairs :: Aliases ( ExpectedFound :: new ( true , a, b) ) ,
386
- }
374
+ TypeTrace { cause : cause. clone ( ) , values : ValuePairs :: Aliases ( ExpectedFound :: new ( a, b) ) }
387
375
}
388
376
}
389
377
@@ -392,7 +380,6 @@ impl<'tcx> ToTrace<'tcx> for ty::FnSig<'tcx> {
392
380
TypeTrace {
393
381
cause : cause. clone ( ) ,
394
382
values : ValuePairs :: PolySigs ( ExpectedFound :: new (
395
- true ,
396
383
ty:: Binder :: dummy ( a) ,
397
384
ty:: Binder :: dummy ( b) ,
398
385
) ) ,
@@ -402,18 +389,15 @@ impl<'tcx> ToTrace<'tcx> for ty::FnSig<'tcx> {
402
389
403
390
impl < ' tcx > ToTrace < ' tcx > for ty:: PolyFnSig < ' tcx > {
404
391
fn to_trace ( cause : & ObligationCause < ' tcx > , a : Self , b : Self ) -> TypeTrace < ' tcx > {
405
- TypeTrace {
406
- cause : cause. clone ( ) ,
407
- values : ValuePairs :: PolySigs ( ExpectedFound :: new ( true , a, b) ) ,
408
- }
392
+ TypeTrace { cause : cause. clone ( ) , values : ValuePairs :: PolySigs ( ExpectedFound :: new ( a, b) ) }
409
393
}
410
394
}
411
395
412
396
impl < ' tcx > ToTrace < ' tcx > for ty:: PolyExistentialTraitRef < ' tcx > {
413
397
fn to_trace ( cause : & ObligationCause < ' tcx > , a : Self , b : Self ) -> TypeTrace < ' tcx > {
414
398
TypeTrace {
415
399
cause : cause. clone ( ) ,
416
- values : ValuePairs :: ExistentialTraitRef ( ExpectedFound :: new ( true , a, b) ) ,
400
+ values : ValuePairs :: ExistentialTraitRef ( ExpectedFound :: new ( a, b) ) ,
417
401
}
418
402
}
419
403
}
@@ -422,7 +406,7 @@ impl<'tcx> ToTrace<'tcx> for ty::PolyExistentialProjection<'tcx> {
422
406
fn to_trace ( cause : & ObligationCause < ' tcx > , a : Self , b : Self ) -> TypeTrace < ' tcx > {
423
407
TypeTrace {
424
408
cause : cause. clone ( ) ,
425
- values : ValuePairs :: ExistentialProjection ( ExpectedFound :: new ( true , a, b) ) ,
409
+ values : ValuePairs :: ExistentialProjection ( ExpectedFound :: new ( a, b) ) ,
426
410
}
427
411
}
428
412
}
0 commit comments