Closed
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