Use [lints.rust.unexpected_cfgs.check-cfg]
instead of hacky check-cfg workaround
#6583
Labels
[lints.rust.unexpected_cfgs.check-cfg]
instead of hacky check-cfg workaround
#6583
With the release of rust-lang/cargo#13913 (in nightly-2024-05-19), there is no longer any need for the kind of workarounds employed in #6538. Cargo has gain the ability to declare
--check-cfg
args directly inside the[lints]
table with[lints.rust.unexpected_cfgs.check-cfg]
1:Cargo.toml
:Originally posted by @Urgau in #6538 (comment)
Footnotes
take effect on Rust 1.80 (current nightly), is ignored on Rust 1.79 (current beta), and produce an unused warning below ↩
The text was updated successfully, but these errors were encountered: