Skip to content

Commit e0049bb

Browse files
committed
Update check-cfg lists for alloc
1 parent c20acbe commit e0049bb

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
@@ -38,3 +38,12 @@ compiler-builtins-mangled-names = ["compiler_builtins/mangled-names"]
3838
compiler-builtins-weak-intrinsics = ["compiler_builtins/weak-intrinsics"]
3939
# Make panics and failed asserts immediately abort without formatting any message
4040
panic_immediate_abort = []
41+
42+
[lints.rust.unexpected_cfgs]
43+
level = "warn"
44+
check-cfg = [
45+
'cfg(no_global_oom_handling)',
46+
'cfg(bootstrap)',
47+
'cfg(no_rc)',
48+
'cfg(no_sync)',
49+
]

0 commit comments

Comments
 (0)