Skip to content

Commit

Permalink
Unrolled build for rust-lang#133763
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#133763 - Urgau:f16-midpoint-const-feat, r=Amanieu

Fix `f16::midpoint` const feature gate

cc rust-lang#131784 (comment)
  • Loading branch information
rust-timer authored Dec 3, 2024
2 parents 42b4b9c + 72297d4 commit 4b84957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/num/f16.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.;
Expand Down

0 comments on commit 4b84957

Please sign in to comment.