@@ -330,6 +330,7 @@ impl Clean<WherePredicate> for hir::WherePredicate<'_> {
330330 hir:: WherePredicate :: BoundPredicate ( ref wbp) => WherePredicate :: BoundPredicate {
331331 ty : wbp. bounded_ty . clean ( cx) ,
332332 bounds : wbp. bounds . clean ( cx) ,
333+ bound_params : wbp. bound_generic_params . into_iter ( ) . map ( |x| x. clean ( cx) ) . collect ( ) ,
333334 } ,
334335
335336 hir:: WherePredicate :: RegionPredicate ( ref wrp) => WherePredicate :: RegionPredicate {
@@ -370,6 +371,7 @@ impl<'a> Clean<WherePredicate> for ty::PolyTraitPredicate<'a> {
370371 WherePredicate :: BoundPredicate {
371372 ty : poly_trait_ref. skip_binder ( ) . self_ty ( ) . clean ( cx) ,
372373 bounds : vec ! [ poly_trait_ref. clean( cx) ] ,
374+ bound_params : Vec :: new ( ) ,
373375 }
374376 }
375377}
@@ -402,6 +404,7 @@ impl<'tcx> Clean<Option<WherePredicate>> for ty::OutlivesPredicate<Ty<'tcx>, ty:
402404 Some ( WherePredicate :: BoundPredicate {
403405 ty : ty. clean ( cx) ,
404406 bounds : vec ! [ GenericBound :: Outlives ( lt. clean( cx) . expect( "failed to clean lifetimes" ) ) ] ,
407+ bound_params : Vec :: new ( ) ,
405408 } )
406409 }
407410}
@@ -567,7 +570,9 @@ impl Clean<Generics> for hir::Generics<'_> {
567570 // to where predicates when such cases occur.
568571 for where_pred in & mut generics. where_predicates {
569572 match * where_pred {
570- WherePredicate :: BoundPredicate { ty : Generic ( ref name) , ref mut bounds } => {
573+ WherePredicate :: BoundPredicate {
574+ ty : Generic ( ref name) , ref mut bounds, ..
575+ } => {
571576 if bounds. is_empty ( ) {
572577 for param in & mut generics. params {
573578 match param. kind {
@@ -721,7 +726,7 @@ impl<'a, 'tcx> Clean<Generics> for (&'a ty::Generics, ty::GenericPredicates<'tcx
721726 // handled in cleaning associated types
722727 let mut sized_params = FxHashSet :: default ( ) ;
723728 where_predicates. retain ( |pred| match * pred {
724- WP :: BoundPredicate { ty : Generic ( ref g) , ref bounds } => {
729+ WP :: BoundPredicate { ty : Generic ( ref g) , ref bounds, .. } => {
725730 if bounds. iter ( ) . any ( |b| b. is_sized_bound ( cx) ) {
726731 sized_params. insert ( * g) ;
727732 false
@@ -741,6 +746,7 @@ impl<'a, 'tcx> Clean<Generics> for (&'a ty::Generics, ty::GenericPredicates<'tcx
741746 where_predicates. push ( WP :: BoundPredicate {
742747 ty : Type :: Generic ( tp. name ) ,
743748 bounds : vec ! [ GenericBound :: maybe_sized( cx) ] ,
749+ bound_params : Vec :: new ( ) ,
744750 } )
745751 }
746752 }
@@ -1117,6 +1123,7 @@ impl Clean<Item> for ty::AssocItem {
11171123 WherePredicate :: BoundPredicate {
11181124 ty : QPath { ref name, ref self_type, ref trait_, .. } ,
11191125 ref bounds,
1126+ ..
11201127 } => ( name, self_type, trait_, bounds) ,
11211128 _ => return None ,
11221129 } ;
0 commit comments