From f512051c0ecc1abe83a294a1b7ffed48a44b0ca6 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 5 Oct 2024 21:26:25 +0200 Subject: [PATCH] adjust test gating for f16/f128 --- library/core/src/num/f128.rs | 6 +++--- library/core/src/num/f16.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/library/core/src/num/f128.rs b/library/core/src/num/f128.rs index cbe1a6060de41..a551ccfe9ed92 100644 --- a/library/core/src/num/f128.rs +++ b/library/core/src/num/f128.rs @@ -1291,7 +1291,7 @@ impl f128 { /// /// ``` /// #![feature(f128)] - /// # #[cfg(reliable_f128)] { + /// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] { /// /// let x = 3.5_f128; /// let y = -3.5_f128; @@ -1323,7 +1323,7 @@ impl f128 { /// /// ``` /// #![feature(f128)] - /// # #[cfg(reliable_f128_math)] { + /// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] { /// /// let f = 3.5_f128; /// @@ -1360,7 +1360,7 @@ impl f128 { /// /// ``` /// #![feature(f128)] - /// # #[cfg(reliable_f128_math)] { + /// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] { /// /// let f = 3.5_f128; /// diff --git a/library/core/src/num/f16.rs b/library/core/src/num/f16.rs index 19263062c7572..0d77377af746e 100644 --- a/library/core/src/num/f16.rs +++ b/library/core/src/num/f16.rs @@ -1266,7 +1266,7 @@ impl f16 { /// /// ``` /// #![feature(f16)] - /// # #[cfg(reliable_f16)] { + /// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] { /// /// let x = 3.5_f16; /// let y = -3.5_f16; @@ -1297,7 +1297,7 @@ impl f16 { /// /// ``` /// #![feature(f16)] - /// # #[cfg(reliable_f16_math)] { + /// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] { /// /// let f = 3.5_f16; /// @@ -1334,7 +1334,7 @@ impl f16 { /// /// ``` /// #![feature(f16)] - /// # #[cfg(reliable_f16_math)] { + /// # #[cfg(all(target_arch = "x86_64", target_os = "linux"))] { /// /// let f = 3.5_f16; ///