Skip to content

Commit 7a87660

Browse files
authored
Use [lints] to address unexpected_cfgs lint (#762)
1 parent 3ab876f commit 7a87660

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,8 @@ loom = "0.7"
3333

3434
[package.metadata.docs.rs]
3535
rustdoc-args = ["--cfg", "docsrs"]
36+
37+
[lints.rust]
38+
unexpected_cfgs = { level = "warn", check-cfg = [
39+
'cfg(loom)',
40+
] }

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![allow(unknown_lints, unexpected_cfgs)]
21
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
32
#![doc(test(
43
no_crate_inject,

0 commit comments

Comments
 (0)