-
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.requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.
Description
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 forArgMatches
:cargo rustdoc --lib --all-features -- --document-private-items -Zunstable-options --output-format json
- However, the following invocation has no mention of
UnwindSafe
forArgMatches
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
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.requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.