@@ -386,21 +386,6 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
386386
387387 self . report_placeholder_failure ( sup_origin, sub_r, sup_r) . emit ( ) ;
388388 }
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- }
404389 }
405390 }
406391 }
@@ -438,8 +423,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
438423 RegionResolutionError :: GenericBoundFailure ( ..) => true ,
439424 RegionResolutionError :: ConcreteFailure ( ..)
440425 | RegionResolutionError :: SubSupConflict ( ..)
441- | RegionResolutionError :: UpperBoundUniverseConflict ( ..)
442- | RegionResolutionError :: MemberConstraintFailure { .. } => false ,
426+ | RegionResolutionError :: UpperBoundUniverseConflict ( ..) => false ,
443427 } ;
444428
445429 let mut errors = if errors. iter ( ) . all ( |e| is_bound_failure ( e) ) {
@@ -454,7 +438,6 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
454438 RegionResolutionError :: GenericBoundFailure ( ref sro, _, _) => sro. span ( ) ,
455439 RegionResolutionError :: SubSupConflict ( _, ref rvo, _, _, _, _) => rvo. span ( ) ,
456440 RegionResolutionError :: UpperBoundUniverseConflict ( _, ref rvo, _, _, _) => rvo. span ( ) ,
457- RegionResolutionError :: MemberConstraintFailure { span, .. } => span,
458441 } ) ;
459442 errors
460443 }
0 commit comments