Skip to content

Passing -W for an unknown lint gives an error without saying why #74722

Closed
@jyn514

Description

@jyn514
$ rustc -W unknown_blah ~/src/test-rustdoc/test.rs 
error[E0602]: unknown lint: `unknown_blah`
  |
  = note: requested on the command line with `-W unknown_blah`

Not sure if this is actually a bug? cc @Mark-Simulacrum

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-driverArea: rustc_driver that ties everything together into the `rustc` compilerA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-compilerRelevant to the compiler 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