diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-08-06 11:54:54 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-08-06 11:54:54 +0200 |
| commit | 71edb3168fcc351e8693d84d3bec6cfcb452560a (patch) | |
| tree | ea8fe0af6c70800c77aa0bad3589f58e976596d6 /src | |
| parent | ca70ed8c8112b97bcd721f37933a30aeaa622dc3 (diff) | |
| download | rust-71edb3168fcc351e8693d84d3bec6cfcb452560a.tar.gz rust-71edb3168fcc351e8693d84d3bec6cfcb452560a.zip | |
remove Clean trait implementation for hir::PolyTraitRef
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/clean/mod.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/librustdoc/clean/mod.rs b/src/librustdoc/clean/mod.rs index 6573350d03a..14d81fc0946 100644 --- a/src/librustdoc/clean/mod.rs +++ b/src/librustdoc/clean/mod.rs @@ -207,12 +207,6 @@ fn clean_poly_trait_ref_with_bindings<'tcx>( ) } -impl<'tcx> Clean<'tcx, GenericBound> for ty::PolyTraitRef<'tcx> { - fn clean(&self, cx: &mut DocContext<'tcx>) -> GenericBound { - clean_poly_trait_ref_with_bindings(cx, *self, &[]) - } -} - fn clean_lifetime<'tcx>(lifetime: hir::Lifetime, cx: &mut DocContext<'tcx>) -> Lifetime { let def = cx.tcx.named_region(lifetime.hir_id); if let Some( @@ -349,7 +343,7 @@ fn clean_poly_trait_predicate<'tcx>( let poly_trait_ref = pred.map_bound(|pred| pred.trait_ref); Some(WherePredicate::BoundPredicate { ty: clean_middle_ty(poly_trait_ref.skip_binder().self_ty(), cx, None), - bounds: vec![poly_trait_ref.clean(cx)], + bounds: vec![clean_poly_trait_ref_with_bindings(cx, poly_trait_ref, &[])], bound_params: Vec::new(), }) } |
