Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Stabilize NonZero* checked operations constness.
  • Loading branch information
iago-lito committed Jun 9, 2022
commit 69e8e7e73b7e56e518a2552097578d590043a30e
26 changes: 13 additions & 13 deletions library/core/src/num/nonzero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ macro_rules! nonzero_unsigned_operations {
/// # }
/// ```
#[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]
Expand Down Expand Up @@ -366,7 +366,7 @@ macro_rules! nonzero_unsigned_operations {
/// # }
/// ```
#[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]
Expand Down Expand Up @@ -432,7 +432,7 @@ macro_rules! nonzero_unsigned_operations {
/// # }
/// ```
#[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]
Expand Down Expand Up @@ -534,7 +534,7 @@ macro_rules! nonzero_signed_operations {
/// # }
/// ```
#[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]
Expand Down Expand Up @@ -566,7 +566,7 @@ macro_rules! nonzero_signed_operations {
/// # }
/// ```
#[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]
Expand Down Expand Up @@ -602,7 +602,7 @@ macro_rules! nonzero_signed_operations {
/// # }
/// ```
#[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]
Expand Down Expand Up @@ -642,7 +642,7 @@ macro_rules! nonzero_signed_operations {
/// # }
/// ```
#[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]
Expand Down Expand Up @@ -677,7 +677,7 @@ macro_rules! nonzero_signed_operations {
/// # }
/// ```
#[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]
Expand Down Expand Up @@ -712,7 +712,7 @@ macro_rules! nonzero_signed_operations {
/// # }
/// ```
#[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]
Expand Down Expand Up @@ -761,7 +761,7 @@ macro_rules! nonzero_unsigned_signed_operations {
/// # }
/// ```
#[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]
Expand Down Expand Up @@ -797,7 +797,7 @@ macro_rules! nonzero_unsigned_signed_operations {
/// # }
/// ```
#[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]
Expand Down Expand Up @@ -870,7 +870,7 @@ macro_rules! nonzero_unsigned_signed_operations {
/// # }
/// ```
#[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]
Expand Down Expand Up @@ -914,7 +914,7 @@ macro_rules! nonzero_unsigned_signed_operations {
/// # }
/// ```
#[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]
Expand Down