Skip to content

Commit 14081a2

Browse files
committed
Auto merge of #124828 - tspiteri:feature-f16-not-f128, r=Nilstrieb
f16::is_sign_{positive,negative} were feature-gated on f128 `f16::is_sign_positive` and `f16::is_sign_negative` were feature-gated on `"f128"` instead of `"f16"`.
2 parents 60a7c19 + fac0a74 commit 14081a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/num/f16.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ impl f16 {
226226
/// See [explanation of NaN as a special value](f32) for more info.
227227
#[inline]
228228
#[must_use]
229-
#[unstable(feature = "f128", issue = "116909")]
229+
#[unstable(feature = "f16", issue = "116909")]
230230
pub fn is_sign_positive(self) -> bool {
231231
!self.is_sign_negative()
232232
}
@@ -239,7 +239,7 @@ impl f16 {
239239
/// See [explanation of NaN as a special value](f32) for more info.
240240
#[inline]
241241
#[must_use]
242-
#[unstable(feature = "f128", issue = "116909")]
242+
#[unstable(feature = "f16", issue = "116909")]
243243
pub fn is_sign_negative(self) -> bool {
244244
// IEEE754 says: isSignMinus(x) is true if and only if x has negative sign. isSignMinus
245245
// applies to zeros and NaNs as well.

0 commit comments

Comments
 (0)