unexpected_cfgs
lint doesn't recognize some standard cfg
s
#124816
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-discussion
Category: Discussion or questions that doesn't represent real issues.
L-unexpected_cfgs
Lint: unexpected_cfgs
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
As part of google/zerocopy#1204, I discovered that the
unexpected_cfgs
lint fires on some standardcfg
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.The text was updated successfully, but these errors were encountered: