Rollup merge of #133763 - Urgau:f16-midpoint-const-feat, r=Amanieu

Fix `f16::midpoint` const feature gate

cc https://github.com/rust-lang/rust/pull/131784#discussion_r1866074470
This commit is contained in:
Guillaume Gomez 2024-12-02 23:08:59 +01:00 committed by GitHub
commit 73f225acf6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.;