Skip to content

Commit 8fa6e3f

Browse files
Prevent some items to get generic impls listed
1 parent d64c2ac commit 8fa6e3f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustdoc/clean/auto_trait.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ impl<'a, 'tcx, 'rcx> AutoTraitFinder<'a, 'tcx, 'rcx> {
114114
name: Option<String>,
115115
) -> Vec<Item>
116116
where F: Fn(DefId) -> Def {
117-
if self.cx
117+
if !self.cx.access_levels.borrow().is_doc_reachable(def_id) ||
118+
self.cx
118119
.tcx
119120
.get_attrs(def_id)
120121
.lists("doc")

0 commit comments

Comments
 (0)