Skip to content

Commit 71edb31

Browse files
remove Clean trait implementation for hir::PolyTraitRef
1 parent ca70ed8 commit 71edb31

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/librustdoc/clean/mod.rs

+1-7
Original file line numberDiff line numberDiff 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-
216210
fn 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
}

0 commit comments

Comments
 (0)