Skip to content

Commit 9d4f5b4

Browse files
committed
Update check-cfg lists for alloc
1 parent edd27e2 commit 9d4f5b4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

alloc/Cargo.toml

+9
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,12 @@ compiler-builtins-weak-intrinsics = ["compiler_builtins/weak-intrinsics"]
4040
panic_immediate_abort = ["core/panic_immediate_abort"]
4141
# Choose algorithms that are optimized for binary size instead of runtime performance
4242
optimize_for_size = ["core/optimize_for_size"]
43+
44+
[lints.rust.unexpected_cfgs]
45+
level = "warn"
46+
check-cfg = [
47+
'cfg(no_global_oom_handling)',
48+
'cfg(bootstrap)',
49+
'cfg(no_rc)',
50+
'cfg(no_sync)',
51+
]

0 commit comments

Comments
 (0)