@@ -386,21 +386,6 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
386
386
387
387
self . report_placeholder_failure ( sup_origin, sub_r, sup_r) . emit ( ) ;
388
388
}
389
-
390
- RegionResolutionError :: MemberConstraintFailure {
391
- hidden_ty,
392
- member_region,
393
- span,
394
- } => {
395
- let hidden_ty = self . resolve_vars_if_possible ( hidden_ty) ;
396
- unexpected_hidden_region_diagnostic (
397
- self . tcx ,
398
- span,
399
- hidden_ty,
400
- member_region,
401
- )
402
- . emit ( ) ;
403
- }
404
389
}
405
390
}
406
391
}
@@ -438,8 +423,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
438
423
RegionResolutionError :: GenericBoundFailure ( ..) => true ,
439
424
RegionResolutionError :: ConcreteFailure ( ..)
440
425
| RegionResolutionError :: SubSupConflict ( ..)
441
- | RegionResolutionError :: UpperBoundUniverseConflict ( ..)
442
- | RegionResolutionError :: MemberConstraintFailure { .. } => false ,
426
+ | RegionResolutionError :: UpperBoundUniverseConflict ( ..) => false ,
443
427
} ;
444
428
445
429
let mut errors = if errors. iter ( ) . all ( |e| is_bound_failure ( e) ) {
@@ -454,7 +438,6 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
454
438
RegionResolutionError :: GenericBoundFailure ( ref sro, _, _) => sro. span ( ) ,
455
439
RegionResolutionError :: SubSupConflict ( _, ref rvo, _, _, _, _) => rvo. span ( ) ,
456
440
RegionResolutionError :: UpperBoundUniverseConflict ( _, ref rvo, _, _, _) => rvo. span ( ) ,
457
- RegionResolutionError :: MemberConstraintFailure { span, .. } => span,
458
441
} ) ;
459
442
errors
460
443
}
0 commit comments