@@ -1447,8 +1447,8 @@ impl f128 {
1447
1447
#[ inline]
1448
1448
#[ rustc_allow_incoherent_impl]
1449
1449
#[ unstable( feature = "f128" , issue = "116909" ) ]
1450
+ #[ rustc_const_unstable( feature = "f128" , issue = "116909" ) ]
1450
1451
#[ must_use = "method returns a new number and does not mutate the original value" ]
1451
- #[ rustc_allow_const_fn_unstable( core_intrinsics) ]
1452
1452
pub const fn floor ( self ) -> f128 {
1453
1453
// SAFETY: intrinsic with no preconditions
1454
1454
unsafe { intrinsics:: floorf128 ( self ) }
@@ -1478,8 +1478,8 @@ impl f128 {
1478
1478
#[ doc( alias = "ceiling" ) ]
1479
1479
#[ rustc_allow_incoherent_impl]
1480
1480
#[ unstable( feature = "f128" , issue = "116909" ) ]
1481
+ #[ rustc_const_unstable( feature = "f128" , issue = "116909" ) ]
1481
1482
#[ must_use = "method returns a new number and does not mutate the original value" ]
1482
- #[ rustc_allow_const_fn_unstable( core_intrinsics) ]
1483
1483
pub const fn ceil ( self ) -> f128 {
1484
1484
// SAFETY: intrinsic with no preconditions
1485
1485
unsafe { intrinsics:: ceilf128 ( self ) }
@@ -1515,8 +1515,8 @@ impl f128 {
1515
1515
#[ inline]
1516
1516
#[ rustc_allow_incoherent_impl]
1517
1517
#[ unstable( feature = "f128" , issue = "116909" ) ]
1518
+ #[ rustc_const_unstable( feature = "f128" , issue = "116909" ) ]
1518
1519
#[ must_use = "method returns a new number and does not mutate the original value" ]
1519
- #[ rustc_allow_const_fn_unstable( core_intrinsics) ]
1520
1520
pub const fn round ( self ) -> f128 {
1521
1521
// SAFETY: intrinsic with no preconditions
1522
1522
unsafe { intrinsics:: roundf128 ( self ) }
@@ -1550,8 +1550,8 @@ impl f128 {
1550
1550
#[ inline]
1551
1551
#[ rustc_allow_incoherent_impl]
1552
1552
#[ unstable( feature = "f128" , issue = "116909" ) ]
1553
+ #[ rustc_const_unstable( feature = "f128" , issue = "116909" ) ]
1553
1554
#[ must_use = "method returns a new number and does not mutate the original value" ]
1554
- #[ rustc_allow_const_fn_unstable( core_intrinsics) ]
1555
1555
pub const fn round_ties_even ( self ) -> f128 {
1556
1556
intrinsics:: round_ties_even_f128 ( self )
1557
1557
}
@@ -1583,8 +1583,8 @@ impl f128 {
1583
1583
#[ doc( alias = "truncate" ) ]
1584
1584
#[ rustc_allow_incoherent_impl]
1585
1585
#[ unstable( feature = "f128" , issue = "116909" ) ]
1586
+ #[ rustc_const_unstable( feature = "f128" , issue = "116909" ) ]
1586
1587
#[ must_use = "method returns a new number and does not mutate the original value" ]
1587
- #[ rustc_allow_const_fn_unstable( core_intrinsics) ]
1588
1588
pub const fn trunc ( self ) -> f128 {
1589
1589
// SAFETY: intrinsic with no preconditions
1590
1590
unsafe { intrinsics:: truncf128 ( self ) }
@@ -1615,6 +1615,7 @@ impl f128 {
1615
1615
#[ inline]
1616
1616
#[ rustc_allow_incoherent_impl]
1617
1617
#[ unstable( feature = "f128" , issue = "116909" ) ]
1618
+ #[ rustc_const_unstable( feature = "f128" , issue = "116909" ) ]
1618
1619
#[ must_use = "method returns a new number and does not mutate the original value" ]
1619
1620
pub const fn fract ( self ) -> f128 {
1620
1621
self - self . trunc ( )
0 commit comments