Skip to content

rustdoc: new lint for warning when docs don't have an example #53805

Closed
@QuietMisdreavus

Description

@QuietMisdreavus

Per discussion on Twitter, it would be nice for rustdoc to be able to warn if an item's documentation doesn't include examples. Since we already have the infrastructure to support rustdoc-only lints (see intra-doc-link-resolution-failure) this should only need to ensure it has the same setup at that.

cc @Manishearth @yoshuawuyts

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-feature-requestCategory: A feature request, i.e: not implemented / a PR.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