diff options
| author | Urgau <urgau@numericable.fr> | 2024-12-02 18:26:00 +0100 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2024-12-02 18:26:00 +0100 |
| commit | 72297d42723510f90c208f3971d1e408e27361bc (patch) | |
| tree | 409907360ea03698df1510486feb93c27bc353b9 | |
| parent | 3bff51ea912d4dfd9caa1e3bc6f68352618208a7 (diff) | |
| download | rust-72297d42723510f90c208f3971d1e408e27361bc.tar.gz rust-72297d42723510f90c208f3971d1e408e27361bc.zip | |
Fix `f16::midpoint` const feature gate
| -rw-r--r-- | library/core/src/num/f16.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/num/f16.rs b/library/core/src/num/f16.rs index 5e1098c877f..c82f0d7cd4a 100644 --- a/library/core/src/num/f16.rs +++ b/library/core/src/num/f16.rs @@ -803,7 +803,7 @@ impl f16 { /// ``` #[inline] #[unstable(feature = "f16", issue = "116909")] - #[rustc_const_unstable(feature = "f128", issue = "116909")] + #[rustc_const_unstable(feature = "f16", issue = "116909")] pub const fn midpoint(self, other: f16) -> f16 { const LO: f16 = f16::MIN_POSITIVE * 2.; const HI: f16 = f16::MAX / 2.; |
