Skip to content

unexpected_cfgs lint doesn't recognize some standard cfgs #124816

Open
@joshlf

Description

@joshlf

As part of google/zerocopy#1204, I discovered that the unexpected_cfgs lint fires on some standard cfgs that are common in the ecosystem. The two I discovered so far are:

I've had to manually emit directives for these. It's not that onerous, but I could imagine it getting onerous especially for projects that don't already have a build.rs script.

It would be good if the lint could be taught about some of the standard cfgs in the ecosystem to cut down on the noise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-discussionCategory: Discussion or questions that doesn't represent real issues.L-unexpected_cfgsLint: unexpected_cfgsT-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