Silence unexpected-cfgs warnings due to #[cfg(loom)]#703
Conversation
|
Silencing the lint is very unfortunate. I understand that you may not want to use a Something like |
|
I'm not going to do that right now. But I opened a bug. |
|
Heads up, with the release of rust-lang/cargo#13913 (in nightly-2024-05-19) there is no longer any need for the silencing of the lint as employed in this PR. Cargo has now gain the ability to declare
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(foo)'] }
Footnotes
|
Silence warnings from rust-lang/cargo#13571 due to our use of
#[cfg(loom)]