about summary refs log tree commit diff
path: root/tests/ui/float
diff options
context:
space:
mode:
authorJens Reidel <adrian@travitia.xyz>2025-07-25 01:45:42 +0000
committerJens Reidel <adrian@travitia.xyz>2025-07-26 07:01:55 +0200
commit53018dc2bcd0f0ee65ca9c869130ec0e56da63e2 (patch)
tree62d9f4c2a13227992479c9aff8e821a9e58f526e /tests/ui/float
parent0dd07bd2165db70ffbe0b903635de26ca630bf20 (diff)
downloadrust-53018dc2bcd0f0ee65ca9c869130ec0e56da63e2.tar.gz
rust-53018dc2bcd0f0ee65ca9c869130ec0e56da63e2.zip
Disable has_reliable_f128_math on musl targets
musl does not implement the symbols required by std for f128 maths.
Disable the associated cfg for all musl targets and adjust the tests
accordingly.

Signed-off-by: Jens Reidel <adrian@travitia.xyz>
Diffstat (limited to 'tests/ui/float')
-rw-r--r--tests/ui/float/target-has-reliable-nightly-float.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/ui/float/target-has-reliable-nightly-float.rs b/tests/ui/float/target-has-reliable-nightly-float.rs
index ad8600fc635..399f101f49a 100644
--- a/tests/ui/float/target-has-reliable-nightly-float.rs
+++ b/tests/ui/float/target-has-reliable-nightly-float.rs
@@ -19,8 +19,10 @@ pub fn has_f128() {}
 pub fn has_f128_math() {}
 
 fn main() {
-    if cfg!(target_arch = "aarch64") && cfg!(target_os = "linux") {
-        // Aarch64+Linux is one target that has support for all features, so use it to spot
+    if cfg!(target_arch = "aarch64") &&
+        cfg!(target_os = "linux") &&
+        cfg!(not(target_env = "musl")) {
+        // Aarch64+GNU+Linux is one target that has support for all features, so use it to spot
         // check that the compiler does indeed enable these gates.
 
         assert!(cfg!(target_has_reliable_f16));