File tree 1 file changed +1
-7
lines changed
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>(
207
207
)
208
208
}
209
209
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
-
216
210
fn clean_lifetime < ' tcx > ( lifetime : hir:: Lifetime , cx : & mut DocContext < ' tcx > ) -> Lifetime {
217
211
let def = cx. tcx . named_region ( lifetime. hir_id ) ;
218
212
if let Some (
@@ -349,7 +343,7 @@ fn clean_poly_trait_predicate<'tcx>(
349
343
let poly_trait_ref = pred. map_bound ( |pred| pred. trait_ref ) ;
350
344
Some ( WherePredicate :: BoundPredicate {
351
345
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 , & [ ] ) ] ,
353
347
bound_params : Vec :: new ( ) ,
354
348
} )
355
349
}
You can’t perform that action at this time.
0 commit comments