Use [lints] to address unexpected_cfgs lint (#762)

This commit is contained in:
Taiki Endo
2025-01-27 10:56:32 +01:00
committed by GitHub
parent 3ab876fee6
commit 7a876609a2
2 changed files with 5 additions and 1 deletions
+5
View File
@@ -33,3 +33,8 @@ loom = "0.7"
[package.metadata.docs.rs] [package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(loom)',
] }
-1
View File
@@ -1,4 +1,3 @@
#![allow(unknown_lints, unexpected_cfgs)]
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)] #![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
#![doc(test( #![doc(test(
no_crate_inject, no_crate_inject,