Skip to content

Add an equivalent of "--check" on rustdoc #76040

Closed
@GuillaumeGomez

Description

@GuillaumeGomez

In a recent conversation, it came up that cargo check wasn't running rustdoc lints. I then realized that there was no easy way to just run an equivalent of cargo check with rustdoc to get those lints. So the question is mostly: how should we do it? Extend cargo? Add an option on rustdoc and then call it through cargo?

cc @rust-lang/rustdoc

Also tagging @yaahc who brought up the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.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