@@ -9,8 +9,8 @@ use rustc_trait_selection::traits::auto_trait::{self, RegionTarget};
99use thin_vec:: ThinVec ;
1010
1111use crate :: clean:: {
12- self , clean_generic_param_def, clean_middle_ty, clean_predicate ,
13- clean_trait_ref_with_constraints , clean_ty_generics, simplify , Lifetime ,
12+ self , clean_generic_param_def, clean_middle_ty, clean_trait_ref_with_constraints ,
13+ clean_ty_generics, Lifetime ,
1414} ;
1515use crate :: core:: DocContext ;
1616
@@ -167,7 +167,7 @@ fn clean_param_env<'tcx>(
167167 // FIXME(#111101): Incorporate the explicit predicates of the item here...
168168 let item_predicates: FxIndexSet < _ > =
169169 tcx. param_env ( item_def_id) . caller_bounds ( ) . iter ( ) . collect ( ) ;
170- let where_predicates = param_env
170+ let predicates = param_env
171171 . caller_bounds ( )
172172 . iter ( )
173173 // FIXME: ...which hopefully allows us to simplify this:
@@ -192,14 +192,14 @@ fn clean_param_env<'tcx>(
192192 }
193193 } )
194194 } )
195- . flat_map ( |pred| clean_predicate ( pred, cx) )
196- . chain ( clean_region_outlives_constraints ( & region_data, generics) )
195+ . map ( |pred| ( pred, rustc_span:: DUMMY_SP ) )
197196 . collect ( ) ;
198197
199- let mut generics = clean:: Generics { params, where_predicates } ;
200- simplify:: sized_bounds ( cx, & mut generics) ;
201- generics. where_predicates = simplify:: where_clauses ( cx, generics. where_predicates ) ;
202- generics
198+ let mut where_predicates = super :: modern:: clean_predicates ( cx, predicates) ;
199+ // FIXME: these no longer get "simplif[ied]::where_clauses"
200+ where_predicates. extend ( clean_region_outlives_constraints ( & region_data, generics) ) ;
201+
202+ clean:: Generics { params, where_predicates }
203203}
204204
205205/// Clean region outlives constraints to where-predicates.
0 commit comments