-
-
Notifications
You must be signed in to change notification settings - Fork 16.3k
rustdoc: --show-coverage shouldn't count tuple struct fields #83255
Copy link
Copy link
Closed
Labels
A-doc-coverageArea: Calculating how much of a crate has documentationArea: Calculating how much of a crate has documentationC-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.
Description
Activity
Metadata
Metadata
Assignees
Labels
A-doc-coverageArea: Calculating how much of a crate has documentationArea: Calculating how much of a crate has documentationC-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.
rustdoc's
--show-coverageflag counts public fields of tuple structs, but this doesn't really make sense, sincedocattributes on such fields never appear in the generated documentation.For example, given the following in
src/lib.rs:cargo rustdoc -- -Z unstable-options --show-coveragereports:If
src/lib.rsis changed to:then the coverage is reported as 100%, but, as expected, the documentation for the
pub u8field isn't included in the documentation generated bycargo doc.Meta