Skip to content

Lints table allows both - and _ separators, including allowing redundant entries. #13943

Open
@epage

Description

@epage

Today, you can do:

[lints.rust]
unexpected_cfgs = "warn"
unexpected-cfgs = "allow"

and the behavior is unspecified.

After #13913, you can also do

[lints.rust]
unexpected-cfgs = { level = "warn", check-cfg = ['cfg(foo, values("bar"))'] }

and you'll get an "unused manifest key" warning for check-cfg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-edition-nextArea: may require a breaking change over an editionA-lints-tableArea: [lints] tableS-needs-mentorStatus: Issue or feature is accepted, but needs a team member to commit to helping and reviewing.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions