@@ -769,8 +769,8 @@ macro_rules! nonzero_signed_operations {
769
769
/// ```
770
770
#[ must_use]
771
771
#[ inline]
772
- #[ stable( feature = "nonzero_negation_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
773
- #[ rustc_const_stable( feature = "nonzero_negation_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
772
+ #[ stable( feature = "nonzero_negation_ops" , since = "1.71.0 " ) ]
773
+ #[ rustc_const_stable( feature = "nonzero_negation_ops" , since = "1.71.0 " ) ]
774
774
pub const fn is_positive( self ) -> bool {
775
775
self . get( ) . is_positive( )
776
776
}
@@ -794,8 +794,8 @@ macro_rules! nonzero_signed_operations {
794
794
/// ```
795
795
#[ must_use]
796
796
#[ inline]
797
- #[ stable( feature = "nonzero_negation_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
798
- #[ rustc_const_stable( feature = "nonzero_negation_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
797
+ #[ stable( feature = "nonzero_negation_ops" , since = "1.71.0 " ) ]
798
+ #[ rustc_const_stable( feature = "nonzero_negation_ops" , since = "1.71.0 " ) ]
799
799
pub const fn is_negative( self ) -> bool {
800
800
self . get( ) . is_negative( )
801
801
}
@@ -819,8 +819,8 @@ macro_rules! nonzero_signed_operations {
819
819
/// # }
820
820
/// ```
821
821
#[ inline]
822
- #[ stable( feature = "nonzero_negation_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
823
- #[ rustc_const_stable( feature = "nonzero_negation_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
822
+ #[ stable( feature = "nonzero_negation_ops" , since = "1.71.0 " ) ]
823
+ #[ rustc_const_stable( feature = "nonzero_negation_ops" , since = "1.71.0 " ) ]
824
824
pub const fn checked_neg( self ) -> Option <$Ty> {
825
825
if let Some ( result) = self . get( ) . checked_neg( ) {
826
826
// SAFETY: negation of nonzero cannot yield zero values.
@@ -851,8 +851,8 @@ macro_rules! nonzero_signed_operations {
851
851
/// # }
852
852
/// ```
853
853
#[ inline]
854
- #[ stable( feature = "nonzero_negation_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
855
- #[ rustc_const_stable( feature = "nonzero_negation_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
854
+ #[ stable( feature = "nonzero_negation_ops" , since = "1.71.0 " ) ]
855
+ #[ rustc_const_stable( feature = "nonzero_negation_ops" , since = "1.71.0 " ) ]
856
856
pub const fn overflowing_neg( self ) -> ( $Ty, bool ) {
857
857
let ( result, overflow) = self . get( ) . overflowing_neg( ) ;
858
858
// SAFETY: negation of nonzero cannot yield zero values.
@@ -884,8 +884,8 @@ macro_rules! nonzero_signed_operations {
884
884
/// # }
885
885
/// ```
886
886
#[ inline]
887
- #[ stable( feature = "nonzero_negation_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
888
- #[ rustc_const_stable( feature = "nonzero_negation_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
887
+ #[ stable( feature = "nonzero_negation_ops" , since = "1.71.0 " ) ]
888
+ #[ rustc_const_stable( feature = "nonzero_negation_ops" , since = "1.71.0 " ) ]
889
889
pub const fn saturating_neg( self ) -> $Ty {
890
890
if let Some ( result) = self . checked_neg( ) {
891
891
return result;
@@ -916,16 +916,16 @@ macro_rules! nonzero_signed_operations {
916
916
/// # }
917
917
/// ```
918
918
#[ inline]
919
- #[ stable( feature = "nonzero_negation_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
920
- #[ rustc_const_stable( feature = "nonzero_negation_ops" , since = "CURRENT_RUSTC_VERSION " ) ]
919
+ #[ stable( feature = "nonzero_negation_ops" , since = "1.71.0 " ) ]
920
+ #[ rustc_const_stable( feature = "nonzero_negation_ops" , since = "1.71.0 " ) ]
921
921
pub const fn wrapping_neg( self ) -> $Ty {
922
922
let result = self . get( ) . wrapping_neg( ) ;
923
923
// SAFETY: negation of nonzero cannot yield zero values.
924
924
unsafe { $Ty:: new_unchecked( result) }
925
925
}
926
926
}
927
927
928
- #[ stable( feature = "signed_nonzero_neg" , since = "CURRENT_RUSTC_VERSION " ) ]
928
+ #[ stable( feature = "signed_nonzero_neg" , since = "1.71.0 " ) ]
929
929
impl Neg for $Ty {
930
930
type Output = $Ty;
931
931
@@ -937,7 +937,7 @@ macro_rules! nonzero_signed_operations {
937
937
}
938
938
939
939
forward_ref_unop! { impl Neg , neg for $Ty,
940
- #[ stable( feature = "signed_nonzero_neg" , since = "CURRENT_RUSTC_VERSION " ) ] }
940
+ #[ stable( feature = "signed_nonzero_neg" , since = "1.71.0 " ) ] }
941
941
) +
942
942
}
943
943
}
0 commit comments