about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTrevor Spiteri <tspiteri@ieee.org>2024-05-06 23:36:47 +0200
committerTrevor Spiteri <tspiteri@ieee.org>2024-05-06 23:36:47 +0200
commitfac0a744501d62c3ca3cd6cf07a6d35a0e588dd7 (patch)
tree484afbf5127520fe8fb5428ee0ae3c4e7ae29732
parent31110152e2b3ce3c009be4a0a13edaff7c008b61 (diff)
downloadrust-fac0a744501d62c3ca3cd6cf07a6d35a0e588dd7.tar.gz
rust-fac0a744501d62c3ca3cd6cf07a6d35a0e588dd7.zip
f16::is_sign_{positive,negative} were feature-gated on f128
-rw-r--r--library/core/src/num/f16.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/num/f16.rs b/library/core/src/num/f16.rs
index e3601db1fcf..4290245ab29 100644
--- a/library/core/src/num/f16.rs
+++ b/library/core/src/num/f16.rs
@@ -226,7 +226,7 @@ impl f16 {
     /// See [explanation of NaN as a special value](f32) for more info.
     #[inline]
     #[must_use]
-    #[unstable(feature = "f128", issue = "116909")]
+    #[unstable(feature = "f16", issue = "116909")]
     pub fn is_sign_positive(self) -> bool {
         !self.is_sign_negative()
     }
@@ -239,7 +239,7 @@ impl f16 {
     /// See [explanation of NaN as a special value](f32) for more info.
     #[inline]
     #[must_use]
-    #[unstable(feature = "f128", issue = "116909")]
+    #[unstable(feature = "f16", issue = "116909")]
     pub fn is_sign_negative(self) -> bool {
         // IEEE754 says: isSignMinus(x) is true if and only if x has negative sign. isSignMinus
         // applies to zeros and NaNs as well.