From 8fa6e3fa761ef9092ab5faf3e0ff1650798e2e53 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 21 Jul 2018 22:45:51 +0200 Subject: [PATCH] Prevent some items to get generic impls listed --- src/librustdoc/clean/auto_trait.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/librustdoc/clean/auto_trait.rs b/src/librustdoc/clean/auto_trait.rs index a4f9444e355a..1fcedb3b5d28 100644 --- a/src/librustdoc/clean/auto_trait.rs +++ b/src/librustdoc/clean/auto_trait.rs @@ -114,7 +114,8 @@ impl<'a, 'tcx, 'rcx> AutoTraitFinder<'a, 'tcx, 'rcx> { name: Option, ) -> Vec where F: Fn(DefId) -> Def { - if self.cx + if !self.cx.access_levels.borrow().is_doc_reachable(def_id) || + self.cx .tcx .get_attrs(def_id) .lists("doc")