Skip to content

Lint for unused unstable feature gates #63850

Closed
@est31

Description

@est31

I've seen two codebases now that used to have unused feature gates:

It would be cool to lint for feature gates that are still unstable but are not "used" by the codebase anywhere so they can be removed. That way, it's easy to know which nightly features a codebase actually still needs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.A-stabilityArea: `#[stable]`, `#[unstable]` etc.C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-langRelevant to the language team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions