-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Rustdoc JSON might not report all implemented traits on a public type #100252
Copy link
Copy link
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. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.
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. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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: