@@ -769,8 +769,8 @@ macro_rules! nonzero_signed_operations {
769769 /// ```
770770 #[ must_use]
771771 #[ 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 " ) ]
774774 pub const fn is_positive( self ) -> bool {
775775 self . get( ) . is_positive( )
776776 }
@@ -794,8 +794,8 @@ macro_rules! nonzero_signed_operations {
794794 /// ```
795795 #[ must_use]
796796 #[ 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 " ) ]
799799 pub const fn is_negative( self ) -> bool {
800800 self . get( ) . is_negative( )
801801 }
@@ -819,8 +819,8 @@ macro_rules! nonzero_signed_operations {
819819 /// # }
820820 /// ```
821821 #[ 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 " ) ]
824824 pub const fn checked_neg( self ) -> Option <$Ty> {
825825 if let Some ( result) = self . get( ) . checked_neg( ) {
826826 // SAFETY: negation of nonzero cannot yield zero values.
@@ -851,8 +851,8 @@ macro_rules! nonzero_signed_operations {
851851 /// # }
852852 /// ```
853853 #[ 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 " ) ]
856856 pub const fn overflowing_neg( self ) -> ( $Ty, bool ) {
857857 let ( result, overflow) = self . get( ) . overflowing_neg( ) ;
858858 // SAFETY: negation of nonzero cannot yield zero values.
@@ -884,8 +884,8 @@ macro_rules! nonzero_signed_operations {
884884 /// # }
885885 /// ```
886886 #[ 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 " ) ]
889889 pub const fn saturating_neg( self ) -> $Ty {
890890 if let Some ( result) = self . checked_neg( ) {
891891 return result;
@@ -916,16 +916,16 @@ macro_rules! nonzero_signed_operations {
916916 /// # }
917917 /// ```
918918 #[ 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 " ) ]
921921 pub const fn wrapping_neg( self ) -> $Ty {
922922 let result = self . get( ) . wrapping_neg( ) ;
923923 // SAFETY: negation of nonzero cannot yield zero values.
924924 unsafe { $Ty:: new_unchecked( result) }
925925 }
926926 }
927927
928- #[ stable( feature = "signed_nonzero_neg" , since = "CURRENT_RUSTC_VERSION " ) ]
928+ #[ stable( feature = "signed_nonzero_neg" , since = "1.71.0 " ) ]
929929 impl Neg for $Ty {
930930 type Output = $Ty;
931931
@@ -937,7 +937,7 @@ macro_rules! nonzero_signed_operations {
937937 }
938938
939939 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 " ) ] }
941941 ) +
942942 }
943943}
0 commit comments