Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 0734ae2

Browse files
committed
Update check-cfg lists for alloc
1 parent 63fe640 commit 0734ae2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

library/alloc/Cargo.toml

Lines changed: 9 additions & 0 deletions
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)