Given a public type, I expected all traits implemented by that type to be part of rustdoc JSON output.
However, rustdoc JSON output sometimes does not include information about all the traits implemented by a type unless --document-private-items is specified.
For example, in this clap semver regression:
- The following invocation on v3.1.18 generates JSON stating that
UnwindSafe is implemented for ArgMatches: cargo rustdoc --lib --all-features -- --document-private-items -Zunstable-options --output-format json
- However, the following invocation has no mention of
UnwindSafe for ArgMatches at all: cargo rustdoc --lib --all-features -- -Zunstable-options --output-format json
Related to:
obi1kenobi/cargo-semver-checks#32
Meta
rustc --version --verbose:
rustc 1.64.0-nightly (93ffde6f0 2022-07-23)
binary: rustc
commit-hash: 93ffde6f04d3d24327a4e17a2a2bf4f63c246235
commit-date: 2022-07-23
host: x86_64-unknown-linux-gnu
release: 1.64.0-nightly
LLVM version: 14.0.6
Given a public type, I expected all traits implemented by that type to be part of rustdoc JSON output.
However, rustdoc JSON output sometimes does not include information about all the traits implemented by a type unless
--document-private-itemsis specified.For example, in this
clapsemver regression:UnwindSafeis implemented forArgMatches:cargo rustdoc --lib --all-features -- --document-private-items -Zunstable-options --output-format jsonUnwindSafeforArgMatchesat all:cargo rustdoc --lib --all-features -- -Zunstable-options --output-format jsonRelated to:
obi1kenobi/cargo-semver-checks#32
Meta
rustc --version --verbose: