@@ -1578,7 +1578,7 @@ $EndFeature, "
15781578 #[ stable( feature = "no_panic_abs" , since = "1.13.0" ) ]
15791579 #[ rustc_const_stable( feature = "const_int_methods" , since = "1.32.0" ) ]
15801580 #[ allow( unused_attributes) ]
1581- #[ allow_internal_unstable( const_if_match) ]
1581+ #[ cfg_attr ( bootstrap , allow_internal_unstable( const_if_match) ) ]
15821582 #[ inline]
15831583 pub const fn wrapping_abs( self ) -> Self {
15841584 if self . is_negative( ) {
@@ -1867,7 +1867,7 @@ assert_eq!(", stringify!($SelfT), "::MIN.overflowing_neg(), (", stringify!($Self
18671867 #[ stable( feature = "wrapping" , since = "1.7.0" ) ]
18681868 #[ rustc_const_stable( feature = "const_int_methods" , since = "1.32.0" ) ]
18691869 #[ allow( unused_attributes) ]
1870- #[ allow_internal_unstable( const_if_match) ]
1870+ #[ cfg_attr ( bootstrap , allow_internal_unstable( const_if_match) ) ]
18711871 pub const fn overflowing_neg( self ) -> ( Self , bool ) {
18721872 if self == Self :: MIN {
18731873 ( Self :: MIN , true )
@@ -2160,7 +2160,7 @@ $EndFeature, "
21602160 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
21612161 #[ rustc_const_stable( feature = "const_int_methods" , since = "1.32.0" ) ]
21622162 #[ allow( unused_attributes) ]
2163- #[ allow_internal_unstable( const_if_match) ]
2163+ #[ cfg_attr ( bootstrap , allow_internal_unstable( const_if_match) ) ]
21642164 #[ inline]
21652165 #[ rustc_inherit_overflow_checks]
21662166 pub const fn abs( self ) -> Self {
0 commit comments