Open Urgau opened 1 month ago
Will this work on our MSRV of Rust 1.63?
There is no reason it wouldn't. The feature is only active with Rust 1.80.
And while [lints.rust.unexpected_cfgs.check-cfg]
produces a unused warning for Rust 1.78 and below, it is only present in local development, thanks to a --cap-lints
-like system in Cargo.
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
:[^1]: take effect on Rust 1.80 (current nightly), is ignored on Rust 1.79 (current beta), and produce an unused warning below
Originally posted by @Urgau in https://github.com/tokio-rs/tokio/issues/6538#issuecomment-2128036174