File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -207,12 +207,6 @@ fn clean_poly_trait_ref_with_bindings<'tcx>(
207207 )
208208}
209209
210- impl < ' tcx > Clean < ' tcx , GenericBound > for ty:: PolyTraitRef < ' tcx > {
211- fn clean ( & self , cx : & mut DocContext < ' tcx > ) -> GenericBound {
212- clean_poly_trait_ref_with_bindings ( cx, * self , & [ ] )
213- }
214- }
215-
216210fn clean_lifetime < ' tcx > ( lifetime : hir:: Lifetime , cx : & mut DocContext < ' tcx > ) -> Lifetime {
217211 let def = cx. tcx . named_region ( lifetime. hir_id ) ;
218212 if let Some (
@@ -349,7 +343,7 @@ fn clean_poly_trait_predicate<'tcx>(
349343 let poly_trait_ref = pred. map_bound ( |pred| pred. trait_ref ) ;
350344 Some ( WherePredicate :: BoundPredicate {
351345 ty : clean_middle_ty ( poly_trait_ref. skip_binder ( ) . self_ty ( ) , cx, None ) ,
352- bounds : vec ! [ poly_trait_ref . clean ( cx) ] ,
346+ bounds : vec ! [ clean_poly_trait_ref_with_bindings ( cx, poly_trait_ref , & [ ] ) ] ,
353347 bound_params : Vec :: new ( ) ,
354348 } )
355349}
You can’t perform that action at this time.
0 commit comments