@@ -1589,8 +1589,8 @@ pub mod math {
15891589 /// [`f64::floor`]: ../../../std/primitive.f64.html#method.floor
15901590 #[ inline]
15911591 #[ unstable( feature = "core_float_math" , issue = "137578" ) ]
1592+ #[ rustc_const_unstable( feature = "const_float_round_methods" , issue = "141555" ) ]
15921593 #[ must_use = "method returns a new number and does not mutate the original value" ]
1593- #[ rustc_allow_const_fn_unstable( core_intrinsics) ]
15941594 pub const fn floor ( x : f64 ) -> f64 {
15951595 // SAFETY: intrinsic with no preconditions
15961596 unsafe { intrinsics:: floorf64 ( x) }
@@ -1619,8 +1619,8 @@ pub mod math {
16191619 #[ inline]
16201620 #[ doc( alias = "ceiling" ) ]
16211621 #[ unstable( feature = "core_float_math" , issue = "137578" ) ]
1622+ #[ rustc_const_unstable( feature = "const_float_round_methods" , issue = "141555" ) ]
16221623 #[ must_use = "method returns a new number and does not mutate the original value" ]
1623- #[ rustc_allow_const_fn_unstable( core_intrinsics) ]
16241624 pub const fn ceil ( x : f64 ) -> f64 {
16251625 // SAFETY: intrinsic with no preconditions
16261626 unsafe { intrinsics:: ceilf64 ( x) }
@@ -1654,8 +1654,8 @@ pub mod math {
16541654 /// [`f64::round`]: ../../../std/primitive.f64.html#method.round
16551655 #[ inline]
16561656 #[ unstable( feature = "core_float_math" , issue = "137578" ) ]
1657+ #[ rustc_const_unstable( feature = "const_float_round_methods" , issue = "141555" ) ]
16571658 #[ must_use = "method returns a new number and does not mutate the original value" ]
1658- #[ rustc_allow_const_fn_unstable( core_intrinsics) ]
16591659 pub const fn round ( x : f64 ) -> f64 {
16601660 // SAFETY: intrinsic with no preconditions
16611661 unsafe { intrinsics:: roundf64 ( x) }
@@ -1688,8 +1688,8 @@ pub mod math {
16881688 /// [`f64::round_ties_even`]: ../../../std/primitive.f64.html#method.round_ties_even
16891689 #[ inline]
16901690 #[ unstable( feature = "core_float_math" , issue = "137578" ) ]
1691+ #[ rustc_const_unstable( feature = "const_float_round_methods" , issue = "141555" ) ]
16911692 #[ must_use = "method returns a new number and does not mutate the original value" ]
1692- #[ rustc_allow_const_fn_unstable( core_intrinsics) ]
16931693 pub const fn round_ties_even ( x : f64 ) -> f64 {
16941694 intrinsics:: round_ties_even_f64 ( x)
16951695 }
@@ -1719,8 +1719,8 @@ pub mod math {
17191719 #[ inline]
17201720 #[ doc( alias = "truncate" ) ]
17211721 #[ unstable( feature = "core_float_math" , issue = "137578" ) ]
1722+ #[ rustc_const_unstable( feature = "const_float_round_methods" , issue = "141555" ) ]
17221723 #[ must_use = "method returns a new number and does not mutate the original value" ]
1723- #[ rustc_allow_const_fn_unstable( core_intrinsics) ]
17241724 pub const fn trunc ( x : f64 ) -> f64 {
17251725 // SAFETY: intrinsic with no preconditions
17261726 unsafe { intrinsics:: truncf64 ( x) }
@@ -1750,6 +1750,7 @@ pub mod math {
17501750 /// [`f64::fract`]: ../../../std/primitive.f64.html#method.fract
17511751 #[ inline]
17521752 #[ unstable( feature = "core_float_math" , issue = "137578" ) ]
1753+ #[ rustc_const_unstable( feature = "const_float_round_methods" , issue = "141555" ) ]
17531754 #[ must_use = "method returns a new number and does not mutate the original value" ]
17541755 pub const fn fract ( x : f64 ) -> f64 {
17551756 x - trunc ( x)
0 commit comments