Skip to content

[rustdoc] When calculating docs percentage, ignore items marked allow(missing_docs) #76121

Closed
@Lokathor

Description

@Lokathor

Request

The --show-coverage unstable option should not count items marked as allow(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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-doc-coverageArea: Calculating how much of a crate has documentationC-feature-requestCategory: A feature request, i.e: not implemented / a PR.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions