@@ -106,7 +106,6 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
106
106
return ty:: GenericPredicates {
107
107
parent : Some ( tcx. parent ( def_id. to_def_id ( ) ) ) ,
108
108
predicates : tcx. arena . alloc_from_iter ( predicates) ,
109
- effects_min_tys : ty:: List :: empty ( ) ,
110
109
} ;
111
110
}
112
111
@@ -128,7 +127,6 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
128
127
return ty:: GenericPredicates {
129
128
parent : Some ( impl_def_id) ,
130
129
predicates : tcx. arena . alloc_from_iter ( impl_predicates) ,
131
- effects_min_tys : ty:: List :: empty ( ) ,
132
130
} ;
133
131
}
134
132
@@ -154,7 +152,6 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
154
152
// We use an `IndexSet` to preserve order of insertion.
155
153
// Preserving the order of insertion is important here so as not to break UI tests.
156
154
let mut predicates: FxIndexSet < ( ty:: Clause < ' _ > , Span ) > = FxIndexSet :: default ( ) ;
157
- let mut effects_min_tys = Vec :: new ( ) ;
158
155
159
156
let hir_generics = node. generics ( ) . unwrap_or ( NO_GENERICS ) ;
160
157
if let Node :: Item ( item) = node {
@@ -189,8 +186,7 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
189
186
ty:: List :: empty ( ) ,
190
187
PredicateFilter :: All ,
191
188
) ;
192
- predicates. extend ( bounds. clauses ( tcx) ) ;
193
- effects_min_tys. extend ( bounds. effects_min_tys ( ) ) ;
189
+ predicates. extend ( bounds. clauses ( ) ) ;
194
190
}
195
191
196
192
// 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
223
219
param. span ,
224
220
) ;
225
221
trace ! ( ?bounds) ;
226
- predicates. extend ( bounds. clauses ( tcx ) ) ;
222
+ predicates. extend ( bounds. clauses ( ) ) ;
227
223
trace ! ( ?predicates) ;
228
224
}
229
225
hir:: GenericParamKind :: Const { .. } => {
@@ -275,8 +271,7 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
275
271
bound_vars,
276
272
PredicateFilter :: All ,
277
273
) ;
278
- predicates. extend ( bounds. clauses ( tcx) ) ;
279
- effects_min_tys. extend ( bounds. effects_min_tys ( ) ) ;
274
+ predicates. extend ( bounds. clauses ( ) ) ;
280
275
}
281
276
282
277
hir:: WherePredicate :: RegionPredicate ( region_pred) => {
@@ -348,7 +343,6 @@ fn gather_explicit_predicates_of(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Gen
348
343
ty:: GenericPredicates {
349
344
parent : generics. parent ,
350
345
predicates : tcx. arena . alloc_from_iter ( predicates) ,
351
- effects_min_tys : tcx. mk_type_list ( & effects_min_tys) ,
352
346
}
353
347
}
354
348
@@ -499,7 +493,6 @@ pub(super) fn explicit_predicates_of<'tcx>(
499
493
ty:: GenericPredicates {
500
494
parent : predicates_and_bounds. parent ,
501
495
predicates : tcx. arena . alloc_slice ( & predicates) ,
502
- effects_min_tys : predicates_and_bounds. effects_min_tys ,
503
496
}
504
497
}
505
498
} else {
@@ -551,7 +544,6 @@ pub(super) fn explicit_predicates_of<'tcx>(
551
544
return GenericPredicates {
552
545
parent : parent_preds. parent ,
553
546
predicates : { tcx. arena . alloc_from_iter ( filtered_predicates) } ,
554
- effects_min_tys : parent_preds. effects_min_tys ,
555
547
} ;
556
548
}
557
549
gather_explicit_predicates_of ( tcx, def_id)
@@ -630,7 +622,7 @@ pub(super) fn implied_predicates_with_filter<'tcx>(
630
622
631
623
// Combine the two lists to form the complete set of superbounds:
632
624
let 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) ) ;
634
626
debug ! ( ?implied_bounds) ;
635
627
636
628
// Now require that immediate supertraits are lowered, which will, in
@@ -874,7 +866,7 @@ impl<'tcx> ItemCtxt<'tcx> {
874
866
) ;
875
867
}
876
868
877
- bounds. clauses ( self . tcx ) . collect ( )
869
+ bounds. clauses ( ) . collect ( )
878
870
}
879
871
}
880
872
@@ -966,7 +958,7 @@ pub(super) fn const_conditions<'tcx>(
966
958
967
959
ty:: ConstConditions {
968
960
parent : 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) | {
970
962
(
971
963
clause. kind ( ) . map_bound ( |clause| match clause {
972
964
ty:: ClauseKind :: HostEffect ( ty:: HostEffectPredicate {
0 commit comments