Skip to content

Commit

Permalink
library: add cfg test as known cfg
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
weihanglo committed Feb 1, 2025
1 parent ae9496c commit b1bc34c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ check-cfg = [
'cfg(no_fp_fmt_parse)',
'cfg(stdarch_intel_sde)',
'cfg(target_arch, values("xtensa"))',
'cfg(test)',
# core use #[path] imports to portable-simd `core_simd` crate
# and to stdarch `core_arch` crate which messes-up with Cargo list
# of declared features, we therefor expect any feature cfg
Expand Down

0 comments on commit b1bc34c

Please sign in to comment.