Add support for --document-hidden-items in first_non_private
This commit is contained in:
parent
298cd366d5
commit
d29afe2e14
1 changed files with 2 additions and 1 deletions
|
|
@ -1552,7 +1552,8 @@ fn first_non_private(
|
|||
if let Res::Def(DefKind::Ctor(..), _) | Res::SelfCtor(..) = res {
|
||||
continue;
|
||||
}
|
||||
if !cx.tcx.is_doc_hidden(use_def_id) &&
|
||||
if (cx.render_options.document_hidden ||
|
||||
!cx.tcx.is_doc_hidden(use_def_id)) &&
|
||||
// We never check for "cx.render_options.document_private"
|
||||
// because if a re-export is not fully public, it's never
|
||||
// documented.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue