@@ -1591,6 +1591,7 @@ pub mod math {
15911591 /// [`f32::floor`]: ../../../std/primitive.f32.html#method.floor
15921592 #[ inline]
15931593 #[ unstable( feature = "core_float_math" , issue = "137578" ) ]
1594+ #[ rustc_const_unstable( feature = "core_float_math" , issue = "137578" ) ]
15941595 #[ must_use = "method returns a new number and does not mutate the original value" ]
15951596 pub const fn floor ( x : f32 ) -> f32 {
15961597 // SAFETY: intrinsic with no preconditions
@@ -1621,6 +1622,7 @@ pub mod math {
16211622 #[ doc( alias = "ceiling" ) ]
16221623 #[ must_use = "method returns a new number and does not mutate the original value" ]
16231624 #[ unstable( feature = "core_float_math" , issue = "137578" ) ]
1625+ #[ rustc_const_unstable( feature = "core_float_math" , issue = "137578" ) ]
16241626 pub const fn ceil ( x : f32 ) -> f32 {
16251627 // SAFETY: intrinsic with no preconditions
16261628 unsafe { intrinsics:: ceilf32 ( x) }
@@ -1654,6 +1656,7 @@ pub mod math {
16541656 /// [`f32::round`]: ../../../std/primitive.f32.html#method.round
16551657 #[ inline]
16561658 #[ unstable( feature = "core_float_math" , issue = "137578" ) ]
1659+ #[ rustc_const_unstable( feature = "core_float_math" , issue = "137578" ) ]
16571660 #[ must_use = "method returns a new number and does not mutate the original value" ]
16581661 pub const fn round ( x : f32 ) -> f32 {
16591662 // SAFETY: intrinsic with no preconditions
@@ -1687,6 +1690,7 @@ pub mod math {
16871690 /// [`f32::round_ties_even`]: ../../../std/primitive.f32.html#method.round_ties_even
16881691 #[ inline]
16891692 #[ unstable( feature = "core_float_math" , issue = "137578" ) ]
1693+ #[ rustc_const_unstable( feature = "core_float_math" , issue = "137578" ) ]
16901694 #[ must_use = "method returns a new number and does not mutate the original value" ]
16911695 pub const fn round_ties_even ( x : f32 ) -> f32 {
16921696 intrinsics:: round_ties_even_f32 ( x)
@@ -1718,6 +1722,7 @@ pub mod math {
17181722 #[ doc( alias = "truncate" ) ]
17191723 #[ must_use = "method returns a new number and does not mutate the original value" ]
17201724 #[ unstable( feature = "core_float_math" , issue = "137578" ) ]
1725+ #[ rustc_const_unstable( feature = "core_float_math" , issue = "137578" ) ]
17211726 pub const fn trunc ( x : f32 ) -> f32 {
17221727 // SAFETY: intrinsic with no preconditions
17231728 unsafe { intrinsics:: truncf32 ( x) }
@@ -1747,6 +1752,7 @@ pub mod math {
17471752 /// [`f32::fract`]: ../../../std/primitive.f32.html#method.fract
17481753 #[ inline]
17491754 #[ unstable( feature = "core_float_math" , issue = "137578" ) ]
1755+ #[ rustc_const_unstable( feature = "core_float_math" , issue = "137578" ) ]
17501756 #[ must_use = "method returns a new number and does not mutate the original value" ]
17511757 pub const fn fract ( x : f32 ) -> f32 {
17521758 x - trunc ( x)
0 commit comments