Skip to content

Commit 0606c04

Browse files
committed
Expect any feature cfg in core and std crates
1 parent 8eaf785 commit 0606c04

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Diff for: core/Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ check-cfg = [
4646
'cfg(bootstrap)',
4747
'cfg(no_fp_fmt_parse)',
4848
'cfg(stdarch_intel_sde)',
49-
# This matches `EXTRA_CHECK_CFGS` in `src/bootstrap/src/lib.rs`.
49+
# core use #[path] imports to portable-simd `core_simd` crate
50+
# and to stdarch `core_arch` crate which messes-up with Cargo list
51+
# of declared features, we therefor expect any feature cfg
5052
'cfg(feature, values(any()))',
5153
]

Diff for: std/Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,8 @@ check-cfg = [
105105
'cfg(backtrace_in_libstd)',
106106
'cfg(netbsd10)',
107107
'cfg(target_arch, values("xtensa"))',
108-
'cfg(feature, values("std", "as_crate"))',
108+
# std use #[path] imports to portable-simd `std_float` crate
109+
# and to the `backtrace` crate which messes-up with Cargo list
110+
# of declared features, we therefor expect any feature cfg
111+
'cfg(feature, values(any()))',
109112
]

0 commit comments

Comments
 (0)