Add test for private items
This commit is contained in:
parent
9fb6548905
commit
298cd366d5
2 changed files with 35 additions and 0 deletions
|
|
@ -1553,6 +1553,9 @@ fn first_non_private(
|
|||
continue;
|
||||
}
|
||||
if !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.
|
||||
cx.tcx.local_visibility(local_use_def_id).is_public() {
|
||||
break 'reexps;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue