Skip to content

Add passes to mark stability and must-use attributes as used #14407

Closed
@sfackler

Description

@sfackler

The unused-attribute lint globally whitelists stability and must-use attributes as they're only looked for on-demand. There should be another pass added to mark them used only in the correct contexts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-attributesArea: Attributes (`#[…]`, `#![…]`)A-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