You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a new warning. For now the suggestion is to use a build script or add #![allow(unknown_lints, unexpected_cfgs)] at the top of your lib.rs file. Compare with tokio-rs/tokio#6538 for a more sophisticated setup.
The suggested setup for tests using loom1 involves using a custom configuration. (
#[cfg(loom)]
)Unfortunately, this triggers the new rustc lint for unexpected
cfg
parameters 2 (only available on the latest nightly version).What is the suggested way to deal with this? Ideally one would not need to add a
build.rs
file just to register a customcfg
name.(This issue stems from faern/oneshot#34)
Footnotes
https://docs.rs/loom/latest/loom/#writing-tests ↩
https://blog.rust-lang.org/2024/05/06/check-cfg.html ↩
The text was updated successfully, but these errors were encountered: