@@ -106,7 +106,6 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
106106return ty:: GenericPredicates {
107107parent : Some ( tcx. parent ( def_id. to_def_id ( ) ) ) ,
108108predicates : tcx. arena . alloc_from_iter ( predicates) ,
109- effects_min_tys : ty:: List :: empty ( ) ,
110109} ;
111110}
112111
@@ -128,7 +127,6 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
128127return ty:: GenericPredicates {
129128parent : Some ( impl_def_id) ,
130129predicates : tcx. arena . alloc_from_iter ( impl_predicates) ,
131- effects_min_tys : ty:: List :: empty ( ) ,
132130} ;
133131}
134132
@@ -154,7 +152,6 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
154152// We use an `IndexSet` to preserve order of insertion.
155153// Preserving the order of insertion is important here so as not to break UI tests.
156154let mut predicates: FxIndexSet < ( ty:: Clause < ' _ > , Span ) > = FxIndexSet :: default ( ) ;
157- let mut effects_min_tys = Vec :: new ( ) ;
158155
159156let hir_generics = node. generics ( ) . unwrap_or ( NO_GENERICS ) ;
160157if let Node :: Item ( item) = node {
@@ -189,8 +186,7 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
189186 ty:: List :: empty ( ) ,
190187PredicateFilter :: All ,
191188) ;
192- predicates. extend ( bounds. clauses ( tcx) ) ;
193- effects_min_tys. extend ( bounds. effects_min_tys ( ) ) ;
189+ predicates. extend ( bounds. clauses ( ) ) ;
194190}
195191
196192// In default impls, we can assume that the self type implements
@@ -223,7 +219,7 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
223219 param. span ,
224220) ;
225221trace ! ( ?bounds) ;
226- predicates. extend ( bounds. clauses ( tcx ) ) ;
222+ predicates. extend ( bounds. clauses ( ) ) ;
227223trace ! ( ?predicates) ;
228224}
229225 hir:: GenericParamKind :: Const { .. } => {
@@ -275,8 +271,7 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
275271 bound_vars,
276272PredicateFilter :: All ,
277273) ;
278- predicates. extend ( bounds. clauses ( tcx) ) ;
279- effects_min_tys. extend ( bounds. effects_min_tys ( ) ) ;
274+ predicates. extend ( bounds. clauses ( ) ) ;
280275}
281276
282277 hir:: WherePredicate :: RegionPredicate ( region_pred) => {
@@ -348,7 +343,6 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
348343 ty:: GenericPredicates {
349344parent : generics. parent ,
350345predicates : tcx. arena . alloc_from_iter ( predicates) ,
351- effects_min_tys : tcx. mk_type_list ( & effects_min_tys) ,
352346}
353347}
354348
@@ -499,7 +493,6 @@ pub(super) fn explicit_predicates_of<'tcx>(
499493 ty:: GenericPredicates {
500494parent : predicates_and_bounds. parent ,
501495predicates : tcx. arena . alloc_slice ( & predicates) ,
502- effects_min_tys : predicates_and_bounds. effects_min_tys ,
503496}
504497}
505498} else {
@@ -551,7 +544,6 @@ pub(super) fn explicit_predicates_of<'tcx>(
551544return GenericPredicates {
552545parent : parent_preds. parent ,
553546predicates : { tcx. arena . alloc_from_iter ( filtered_predicates) } ,
554- effects_min_tys : parent_preds. effects_min_tys ,
555547} ;
556548}
557549gather_explicit_predicates_of ( tcx, def_id)
@@ -630,7 +622,7 @@ pub(super) fn implied_predicates_with_filter<'tcx>(
630622
631623// Combine the two lists to form the complete set of superbounds:
632624let implied_bounds =
633- & * tcx. arena . alloc_from_iter ( bounds. clauses ( tcx ) . chain ( where_bounds_that_match) ) ;
625+ & * tcx. arena . alloc_from_iter ( bounds. clauses ( ) . chain ( where_bounds_that_match) ) ;
634626debug ! ( ?implied_bounds) ;
635627
636628// Now require that immediate supertraits are lowered, which will, in
@@ -874,7 +866,7 @@ impl<'tcx> ItemCtxt<'tcx> {
874866) ;
875867}
876868
877- bounds. clauses ( self . tcx ) . collect ( )
869+ bounds. clauses ( ) . collect ( )
878870}
879871}
880872
@@ -966,7 +958,7 @@ pub(super) fn const_conditions<'tcx>(
966958
967959 ty:: ConstConditions {
968960parent : has_parent. then ( || tcx. local_parent ( def_id) . to_def_id ( ) ) ,
969- predicates : tcx. arena . alloc_from_iter ( bounds. clauses ( tcx ) . map ( |( clause, span) | {
961+ predicates : tcx. arena . alloc_from_iter ( bounds. clauses ( ) . map ( |( clause, span) | {
970962(
971963 clause. kind ( ) . map_bound ( |clause| match clause {
972964 ty:: ClauseKind :: HostEffect ( ty:: HostEffectPredicate {
0 commit comments