-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-rustdoc-jsonArea: Rustdoc JSON backendArea: Rustdoc JSON backendC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
Step-by-step
- Put this in
repro.rs
:
mod private_mod {
pub struct S;
impl S {
pub fn missing_from_rustdoc_json() {}
}
}
pub use private_mod::*;
-
Run
rustdoc +nightly-2022-10-02 repro.rs -Zunstable-options -wjson
-
Check if
missing_from_rustdoc_json
is in the generated JSON:grep missing_from_rustdoc_json doc/repro.json
Actual result
Item is missing.
Expected result
Item is present.
Remarks
The item is present in the HTML version of the docs (rustdoc +nightly-2022-10-02 repro.rs && open doc/repro/index.html
), or in the JSON if private_mod
is made pub
.
@rustbot labels +A-rustdoc-json +T-rustdoc +C-bug
Metadata
Metadata
Assignees
Labels
A-rustdoc-jsonArea: Rustdoc JSON backendArea: Rustdoc JSON backendC-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.