Skip to content

Lint treats unknown warning attributes as an error #2480

Closed
@msullivan

Description

@msullivan

Right now, lint will raise an error if it sees a warning attribute that it doesn't recognize. This is annoying because it means that a snapshot is required in order to introduce a new lint setting and then add suppressions for it.

The right thing to do is to instead use the lint warning settings to configure what lint does when it doesn't recognize a warning attribute. Need to pick a default, though. (Probably warning?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions