@@ -362,8 +362,8 @@ impl<'a, 'tcx> TranslationContext<'a, 'tcx> {
362
362
predicate : Predicate < ' tcx > ,
363
363
) -> Option < Predicate < ' tcx > > {
364
364
use rustc_middle:: ty:: {
365
- Binder , /*EquatePredicate,*/ OutlivesPredicate , ProjectionPredicate , ProjectionTy ,
366
- SubtypePredicate , TraitPredicate ,
365
+ Binder , OutlivesPredicate , ProjectionPredicate , ProjectionTy , SubtypePredicate ,
366
+ TraitPredicate ,
367
367
} ;
368
368
369
369
Some ( match predicate {
@@ -386,13 +386,6 @@ impl<'a, 'tcx> TranslationContext<'a, 'tcx> {
386
386
) ,
387
387
constness,
388
388
) ,
389
- /*Predicate::Equate(equate_predicate) => {
390
- Predicate::Equate(equate_predicate.map_bound(|e_pred| {
391
- let l = self.translate(index_map, &e_pred.0);
392
- let r = self.translate(index_map, &e_pred.1);
393
- EquatePredicate(l, r)
394
- }))
395
- },*/
396
389
Predicate :: RegionOutlives ( region_outlives_predicate) => {
397
390
Predicate :: RegionOutlives ( region_outlives_predicate. map_bound ( |r_pred| {
398
391
let l = self . translate_region ( r_pred. 0 ) ;
@@ -451,6 +444,10 @@ impl<'a, 'tcx> TranslationContext<'a, 'tcx> {
451
444
return None ;
452
445
}
453
446
}
447
+ Predicate :: ConstEquate ( c1, c2) => Predicate :: ConstEquate (
448
+ self . translate ( index_map, & c1) ,
449
+ self . translate ( index_map, & c2) ,
450
+ ) ,
454
451
} )
455
452
}
456
453
0 commit comments