From 69e8e7e73b7e56e518a2552097578d590043a30e Mon Sep 17 00:00:00 2001 From: Iago-lito Date: Thu, 9 Jun 2022 09:17:06 +0200 Subject: [PATCH] Stabilize NonZero* checked operations constness. --- library/core/src/num/nonzero.rs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/library/core/src/num/nonzero.rs b/library/core/src/num/nonzero.rs index 5a7e8ef82c8..5e95edaee19 100644 --- a/library/core/src/num/nonzero.rs +++ b/library/core/src/num/nonzero.rs @@ -331,7 +331,7 @@ impl $Ty { /// # } /// ``` #[stable(feature = "nonzero_checked_ops", since = "1.63.0")] - #[rustc_const_unstable(feature = "const_nonzero_checked_ops", issue = "97547")] + #[rustc_const_stable(feature = "const_nonzero_checked_ops", since = "1.63.0")] #[must_use = "this returns the result of the operation, \ without modifying the original"] #[inline] @@ -366,7 +366,7 @@ pub const fn checked_add(self, other: $Int) -> Option<$Ty> { /// # } /// ``` #[stable(feature = "nonzero_checked_ops", since = "1.63.0")] - #[rustc_const_unstable(feature = "const_nonzero_checked_ops", issue = "97547")] + #[rustc_const_stable(feature = "const_nonzero_checked_ops", since = "1.63.0")] #[must_use = "this returns the result of the operation, \ without modifying the original"] #[inline] @@ -432,7 +432,7 @@ pub const fn saturating_add(self, other: $Int) -> $Ty { /// # } /// ``` #[stable(feature = "nonzero_checked_ops", since = "1.63.0")] - #[rustc_const_unstable(feature = "const_nonzero_checked_ops", issue = "97547")] + #[rustc_const_stable(feature = "const_nonzero_checked_ops", since = "1.63.0")] #[must_use = "this returns the result of the operation, \ without modifying the original"] #[inline] @@ -534,7 +534,7 @@ impl $Ty { /// # } /// ``` #[stable(feature = "nonzero_checked_ops", since = "1.63.0")] - #[rustc_const_unstable(feature = "const_nonzero_checked_ops", issue = "97547")] + #[rustc_const_stable(feature = "const_nonzero_checked_ops", since = "1.63.0")] #[must_use = "this returns the result of the operation, \ without modifying the original"] #[inline] @@ -566,7 +566,7 @@ pub const fn abs(self) -> $Ty { /// # } /// ``` #[stable(feature = "nonzero_checked_ops", since = "1.63.0")] - #[rustc_const_unstable(feature = "const_nonzero_checked_ops", issue = "97547")] + #[rustc_const_stable(feature = "const_nonzero_checked_ops", since = "1.63.0")] #[must_use = "this returns the result of the operation, \ without modifying the original"] #[inline] @@ -602,7 +602,7 @@ pub const fn checked_abs(self) -> Option<$Ty> { /// # } /// ``` #[stable(feature = "nonzero_checked_ops", since = "1.63.0")] - #[rustc_const_unstable(feature = "const_nonzero_checked_ops", issue = "97547")] + #[rustc_const_stable(feature = "const_nonzero_checked_ops", since = "1.63.0")] #[must_use = "this returns the result of the operation, \ without modifying the original"] #[inline] @@ -642,7 +642,7 @@ pub const fn overflowing_abs(self) -> ($Ty, bool) { /// # } /// ``` #[stable(feature = "nonzero_checked_ops", since = "1.63.0")] - #[rustc_const_unstable(feature = "const_nonzero_checked_ops", issue = "97547")] + #[rustc_const_stable(feature = "const_nonzero_checked_ops", since = "1.63.0")] #[must_use = "this returns the result of the operation, \ without modifying the original"] #[inline] @@ -677,7 +677,7 @@ pub const fn saturating_abs(self) -> $Ty { /// # } /// ``` #[stable(feature = "nonzero_checked_ops", since = "1.63.0")] - #[rustc_const_unstable(feature = "const_nonzero_checked_ops", issue = "97547")] + #[rustc_const_stable(feature = "const_nonzero_checked_ops", since = "1.63.0")] #[must_use = "this returns the result of the operation, \ without modifying the original"] #[inline] @@ -712,7 +712,7 @@ pub const fn wrapping_abs(self) -> $Ty { /// # } /// ``` #[stable(feature = "nonzero_checked_ops", since = "1.63.0")] - #[rustc_const_unstable(feature = "const_nonzero_checked_ops", issue = "97547")] + #[rustc_const_stable(feature = "const_nonzero_checked_ops", since = "1.63.0")] #[must_use = "this returns the result of the operation, \ without modifying the original"] #[inline] @@ -761,7 +761,7 @@ impl $Ty { /// # } /// ``` #[stable(feature = "nonzero_checked_ops", since = "1.63.0")] - #[rustc_const_unstable(feature = "const_nonzero_checked_ops", issue = "97547")] + #[rustc_const_stable(feature = "const_nonzero_checked_ops", since = "1.63.0")] #[must_use = "this returns the result of the operation, \ without modifying the original"] #[inline] @@ -797,7 +797,7 @@ pub const fn checked_mul(self, other: $Ty) -> Option<$Ty> { /// # } /// ``` #[stable(feature = "nonzero_checked_ops", since = "1.63.0")] - #[rustc_const_unstable(feature = "const_nonzero_checked_ops", issue = "97547")] + #[rustc_const_stable(feature = "const_nonzero_checked_ops", since = "1.63.0")] #[must_use = "this returns the result of the operation, \ without modifying the original"] #[inline] @@ -870,7 +870,7 @@ pub const fn saturating_mul(self, other: $Ty) -> $Ty { /// # } /// ``` #[stable(feature = "nonzero_checked_ops", since = "1.63.0")] - #[rustc_const_unstable(feature = "const_nonzero_checked_ops", issue = "97547")] + #[rustc_const_stable(feature = "const_nonzero_checked_ops", since = "1.63.0")] #[must_use = "this returns the result of the operation, \ without modifying the original"] #[inline] @@ -914,7 +914,7 @@ pub const fn checked_pow(self, other: u32) -> Option<$Ty> { /// # } /// ``` #[stable(feature = "nonzero_checked_ops", since = "1.63.0")] - #[rustc_const_unstable(feature = "const_nonzero_checked_ops", issue = "97547")] + #[rustc_const_stable(feature = "const_nonzero_checked_ops", since = "1.63.0")] #[must_use = "this returns the result of the operation, \ without modifying the original"] #[inline]