Trait impls missing when generating rustdoc JSON without --document-private-items
flag
#32
Closed
2 tasks done
--document-private-items
flag
#32
For unknown reasons, 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 thisclap
semver regression:UnwindSafe
is implemented forArgMatches
:cargo rustdoc --lib --all-features -- --document-private-items -Zunstable-options --output-format json
UnwindSafe
forArgMatches
at all:cargo rustdoc --lib --all-features -- -Zunstable-options --output-format json
It's unclear to me at the moment whether this is expected behavior from rustdoc, or a bug. Will triage and use this as a tracking issue.
In the meantime:
--document-private-items
and--all-features
in the rustdoc invocationThe text was updated successfully, but these errors were encountered: