Prevent some items to get generic impls listed
This commit is contained in:
parent
d64c2ac01a
commit
8fa6e3fa76
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue