-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.L-unexpected_cfgsLint: unexpected_cfgsLint: unexpected_cfgsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
As part of google/zerocopy#1204, I discovered that the unexpected_cfgs
lint fires on some standard cfg
s that are common in the ecosystem. The two I discovered so far are:
doc_cfg
kani
(used by the Kani verifier)
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 cfg
s in the ecosystem to cut down on the noise.
saethlin
Metadata
Metadata
Assignees
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.L-unexpected_cfgsLint: unexpected_cfgsLint: unexpected_cfgsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.