Prevent some items to get generic impls listed
This commit is contained in:
parent
d64c2ac01a
commit
8fa6e3fa76
@ -114,7 +114,8 @@ impl<'a, 'tcx, 'rcx> AutoTraitFinder<'a, 'tcx, 'rcx> {
|
||||
name: Option<String>,
|
||||
) -> Vec<Item>
|
||||
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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user