Skip to content

Commit b1bc34c

Browse files
committed
library: add cfg test as known cfg
This is needed because since rust-lang/cargo#15007 `test` is no longer a built-in well-known cfg when `[lib] test = false` is set.
1 parent ae9496c commit b1bc34c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ check-cfg = [
3131
'cfg(no_fp_fmt_parse)',
3232
'cfg(stdarch_intel_sde)',
3333
'cfg(target_arch, values("xtensa"))',
34+
'cfg(test)',
3435
# core use #[path] imports to portable-simd `core_simd` crate
3536
# and to stdarch `core_arch` crate which messes-up with Cargo list
3637
# of declared features, we therefor expect any feature cfg

0 commit comments

Comments
 (0)