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:
commit
73f225acf6
1 changed files with 1 additions and 1 deletions
|
@ -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.;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue