Skip to content

Commit 48f3e63

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 36790d2 commit 48f3e63

File tree

7 files changed

+12
-0
lines changed

7 files changed

+12
-0
lines changed

library/coretests/Cargo.toml

+11
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,14 @@ 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+
# Internal features aren't marked known config by default, we use these to
34+
# gate tests.
35+
'cfg(target_has_reliable_f16)',
36+
'cfg(target_has_reliable_f16_math)',
37+
'cfg(target_has_reliable_f128)',
38+
'cfg(target_has_reliable_f128_math)',
39+
]

library/coretests/tests/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ mod cmp;
144144
mod const_ptr;
145145
mod convert;
146146
mod ffi;
147+
mod floats;
147148
mod fmt;
148149
mod future;
149150
mod hash;

0 commit comments

Comments
 (0)