Stabilize NonZero* checked operations constness.
This commit is contained in:
parent
5823d7b563
commit
69e8e7e73b
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user