$EndFeature, "
```"),
#[stable(feature = "rust1", since = "1.0.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
$EndFeature, "
```"),
#[stable(feature = "rust1", since = "1.0.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
$EndFeature, "
```"),
#[stable(feature = "rust1", since = "1.0.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
$EndFeature, "
```"),
#[stable(feature = "rust1", since = "1.0.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!((1", stringify!($SelfT), ").checked_div_euclid(0), None);
```"),
#[stable(feature = "euclidean_division", since = "1.38.0")]
- #[rustc_const_unstable(feature = "const_int_euclidean", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_euclidean_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
$EndFeature, "
```"),
#[stable(feature = "wrapping", since = "1.7.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!(", stringify!($SelfT), "::MIN.checked_rem_euclid(-1), None);
```"),
#[stable(feature = "euclidean_division", since = "1.38.0")]
- #[rustc_const_unstable(feature = "const_int_euclidean", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_euclidean_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
$EndFeature, "
```"),
#[stable(feature = "wrapping", since = "1.7.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[inline]
pub const fn checked_neg(self) -> Option<Self> {
let (a, b) = self.overflowing_neg();
$EndFeature, "
```"),
#[stable(feature = "wrapping", since = "1.7.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
$EndFeature, "
```"),
#[stable(feature = "wrapping", since = "1.7.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
$EndFeature, "
```"),
#[stable(feature = "no_panic_abs", since = "1.13.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[inline]
pub const fn checked_abs(self) -> Option<Self> {
if self.is_negative() {
```"),
#[unstable(feature = "saturating_neg", issue = "59983")]
- #[rustc_const_unstable(feature = "const_int_saturating", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_saturating_int_methods", issue = "53718")]
#[inline]
pub const fn saturating_neg(self) -> Self {
intrinsics::saturating_sub(0, self)
```"),
#[unstable(feature = "saturating_neg", issue = "59983")]
- #[rustc_const_unstable(feature = "const_int_saturating", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_saturating_int_methods", issue = "53718")]
#[inline]
pub const fn saturating_abs(self) -> Self {
if self.is_negative() {
$EndFeature, "
```"),
#[stable(feature = "wrapping", since = "1.7.0")]
- #[rustc_const_unstable(feature = "const_int_saturating", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_saturating_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
$EndFeature, "
```"),
#[stable(feature = "num_wrapping", since = "1.2.0")]
- #[rustc_const_unstable(feature = "const_int_wrapping", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_wrapping_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!((-128i8).wrapping_div_euclid(-1), -128);
```"),
#[stable(feature = "euclidean_division", since = "1.38.0")]
- #[rustc_const_unstable(feature = "const_int_euclidean", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_euclidean_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
$EndFeature, "
```"),
#[stable(feature = "num_wrapping", since = "1.2.0")]
- #[rustc_const_unstable(feature = "const_int_wrapping", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_wrapping_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!((-128i8).wrapping_rem_euclid(-1), 0);
```"),
#[stable(feature = "euclidean_division", since = "1.38.0")]
- #[rustc_const_unstable(feature = "const_int_euclidean", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_euclidean_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
```"),
#[inline]
#[stable(feature = "wrapping", since = "1.7.0")]
- #[rustc_const_unstable(feature = "const_int_overflowing", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_overflowing_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
pub const fn overflowing_div(self, rhs: Self) -> (Self, bool) {
```"),
#[inline]
#[stable(feature = "euclidean_division", since = "1.38.0")]
- #[rustc_const_unstable(feature = "const_int_euclidean", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_euclidean_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
pub const fn overflowing_div_euclid(self, rhs: Self) -> (Self, bool) {
```"),
#[inline]
#[stable(feature = "wrapping", since = "1.7.0")]
- #[rustc_const_unstable(feature = "const_int_overflowing", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_overflowing_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
pub const fn overflowing_rem(self, rhs: Self) -> (Self, bool) {
assert_eq!(", stringify!($SelfT), "::MIN.overflowing_rem_euclid(-1), (0, true));
```"),
#[stable(feature = "euclidean_division", since = "1.38.0")]
- #[rustc_const_unstable(feature = "const_int_euclidean", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_euclidean_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!((-a).div_euclid(-b), 2); // -7 >= -4 * 2
```"),
#[stable(feature = "euclidean_division", since = "1.38.0")]
- #[rustc_const_unstable(feature = "const_int_euclidean", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_euclidean_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!((-a).rem_euclid(-b), 1);
```"),
#[stable(feature = "euclidean_division", since = "1.38.0")]
- #[rustc_const_unstable(feature = "const_int_euclidean", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_euclidean_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!((", stringify!($SelfT), "::max_value() - 2).checked_add(3), None);", $EndFeature, "
```"),
#[stable(feature = "rust1", since = "1.0.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!(0", stringify!($SelfT), ".checked_sub(1), None);", $EndFeature, "
```"),
#[stable(feature = "rust1", since = "1.0.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!(", stringify!($SelfT), "::max_value().checked_mul(2), None);", $EndFeature, "
```"),
#[stable(feature = "rust1", since = "1.0.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!(1", stringify!($SelfT), ".checked_div(0), None);", $EndFeature, "
```"),
#[stable(feature = "rust1", since = "1.0.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!(1", stringify!($SelfT), ".checked_div_euclid(0), None);
```"),
#[stable(feature = "euclidean_division", since = "1.38.0")]
- #[rustc_const_unstable(feature = "const_int_euclidean", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_euclidean_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!(5", stringify!($SelfT), ".checked_rem(0), None);", $EndFeature, "
```"),
#[stable(feature = "wrapping", since = "1.7.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!(5", stringify!($SelfT), ".checked_rem_euclid(0), None);
```"),
#[stable(feature = "euclidean_division", since = "1.38.0")]
- #[rustc_const_unstable(feature = "const_int_euclidean", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_euclidean_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!(1", stringify!($SelfT), ".checked_neg(), None);", $EndFeature, "
```"),
#[stable(feature = "wrapping", since = "1.7.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[inline]
pub const fn checked_neg(self) -> Option<Self> {
let (a, b) = self.overflowing_neg();
assert_eq!(0x10", stringify!($SelfT), ".checked_shl(129), None);", $EndFeature, "
```"),
#[stable(feature = "wrapping", since = "1.7.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!(0x10", stringify!($SelfT), ".checked_shr(129), None);", $EndFeature, "
```"),
#[stable(feature = "wrapping", since = "1.7.0")]
- #[rustc_const_unstable(feature = "const_int_checked", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_checked_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
"::MAX);", $EndFeature, "
```"),
#[stable(feature = "wrapping", since = "1.7.0")]
- #[rustc_const_unstable(feature = "const_int_saturating", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_saturating_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
", $Feature, "assert_eq!(100", stringify!($SelfT), ".wrapping_div(10), 10);", $EndFeature, "
```"),
#[stable(feature = "num_wrapping", since = "1.2.0")]
- #[rustc_const_unstable(feature = "const_int_wrapping", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_wrapping_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!(100", stringify!($SelfT), ".wrapping_div_euclid(10), 10);
```"),
#[stable(feature = "euclidean_division", since = "1.38.0")]
- #[rustc_const_unstable(feature = "const_int_euclidean", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_euclidean_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
", $Feature, "assert_eq!(100", stringify!($SelfT), ".wrapping_rem(10), 0);", $EndFeature, "
```"),
#[stable(feature = "num_wrapping", since = "1.2.0")]
- #[rustc_const_unstable(feature = "const_int_wrapping", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_wrapping_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!(100", stringify!($SelfT), ".wrapping_rem_euclid(10), 0);
```"),
#[stable(feature = "euclidean_division", since = "1.38.0")]
- #[rustc_const_unstable(feature = "const_int_euclidean", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_euclidean_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
```"),
#[inline]
#[stable(feature = "wrapping", since = "1.7.0")]
- #[rustc_const_unstable(feature = "const_int_overflowing", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_overflowing_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
pub const fn overflowing_div(self, rhs: Self) -> (Self, bool) {
```"),
#[inline]
#[stable(feature = "euclidean_division", since = "1.38.0")]
- #[rustc_const_unstable(feature = "const_int_euclidean", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_euclidean_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
pub const fn overflowing_div_euclid(self, rhs: Self) -> (Self, bool) {
```"),
#[inline]
#[stable(feature = "wrapping", since = "1.7.0")]
- #[rustc_const_unstable(feature = "const_int_overflowing", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_overflowing_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
pub const fn overflowing_rem(self, rhs: Self) -> (Self, bool) {
```"),
#[inline]
#[stable(feature = "euclidean_division", since = "1.38.0")]
- #[rustc_const_unstable(feature = "const_int_euclidean", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_euclidean_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
pub const fn overflowing_rem_euclid(self, rhs: Self) -> (Self, bool) {
assert_eq!(7", stringify!($SelfT), ".div_euclid(4), 1); // or any other integer type
```"),
#[stable(feature = "euclidean_division", since = "1.38.0")]
- #[rustc_const_unstable(feature = "const_int_euclidean", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_euclidean_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]
assert_eq!(7", stringify!($SelfT), ".rem_euclid(4), 3); // or any other integer type
```"),
#[stable(feature = "euclidean_division", since = "1.38.0")]
- #[rustc_const_unstable(feature = "const_int_euclidean", issue = "53718")]
+ #[rustc_const_unstable(feature = "const_euclidean_int_methods", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
#[inline]