[rustdoc] When calculating docs percentage, ignore items marked allow(missing_docs)
#76121
Labels
A-doc-coverage
Area: Calculating how much of a crate has documentation
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Request
The
--show-coverage
unstable option should not count items marked asallow(missing_docs)
when calculating the docs percentage.Use Case
I have a crate full of "bitfield" types, where the useful data is bit packed into integers (example). Each pseudo-field has a getter and a setter. I would like to document the getters, but the setters simply match the associated getter, and additional words on them would only serve to distract.
Accordingly, the getters are marked as
allow(missing_docs)
, and they shouldn't count towards the docs coverage.The text was updated successfully, but these errors were encountered: