Skip to content

Commit 510bc1f

Browse files
committed
Move float tests from std to core
Many float-related tests in `std` only depend on `core`, so move the tests there. This also allows us to verify functions from `core_float_math`. Since the majority of test files need to be moved to `coretests`, move the files here without any cleanup; this is done in a followup commit. This makes git history slightly cleaner, but coretests will not build immediately after this commit.
1 parent 456d8a0 commit 510bc1f

File tree

7 files changed

+13
-0
lines changed

7 files changed

+13
-0
lines changed

library/coretests/Cargo.toml

+12
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,15 @@ test = true
2626
[dev-dependencies]
2727
rand = { version = "0.9.0", default-features = false }
2828
rand_xorshift = { version = "0.4.0", default-features = false }
29+
30+
[lints.rust.unexpected_cfgs]
31+
level = "warn"
32+
check-cfg = [
33+
'cfg(bootstrap)',
34+
# Internal features aren't marked known config by default, we use these to
35+
# gate tests.
36+
'cfg(target_has_reliable_f16)',
37+
'cfg(target_has_reliable_f16_math)',
38+
'cfg(target_has_reliable_f128)',
39+
'cfg(target_has_reliable_f128_math)',
40+
]

library/coretests/tests/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ mod cmp;
145145
mod const_ptr;
146146
mod convert;
147147
mod ffi;
148+
mod floats;
148149
mod fmt;
149150
mod future;
150151
mod hash;

0 commit comments

Comments
 (0)