Skip to content

Use of unknown feature gates should be a deny-by-default lint #60456

Open
@jethrogb

Description

@jethrogb

#52644 made it an error to specify a #![feature(...)] that the compiler doesn't know about. It could be a deny-by-default lint instead. @varkor in #52644 (comment):

I don't see a strong reason not to make the unknown feature error a deny-by-default lint instead, which would allow you to silence it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.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