Skip to content

Commit eead843

Browse files
committed
Update check-cfg lists for std
1 parent e0049bb commit eead843

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

library/std/Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ system-llvm-libunwind = ["unwind/system-llvm-libunwind"]
8282

8383
# Make panics and failed asserts immediately abort without formatting any message
8484
panic_immediate_abort = ["core/panic_immediate_abort", "alloc/panic_immediate_abort"]
85+
restricted-std = []
8586

8687
# Enable std_detect default features for stdarch/crates/std_detect:
8788
# https://github.com/rust-lang/stdarch/blob/master/crates/std_detect/Cargo.toml
@@ -99,3 +100,13 @@ heap_size = 0x8000000
99100
name = "stdbenches"
100101
path = "benches/lib.rs"
101102
test = true
103+
104+
[lints.rust.unexpected_cfgs]
105+
level = "warn"
106+
check-cfg = [
107+
'cfg(bootstrap)',
108+
'cfg(backtrace_in_libstd)',
109+
'cfg(netbsd10)',
110+
'cfg(target_arch, values("xtensa"))',
111+
'cfg(feature, values("std", "as_crate"))',
112+
]

0 commit comments

Comments
 (0)