```"),
#[inline]
#[stable(feature = "wrapping", since = "1.7.0")]
+ #[rustc_const_unstable(feature = "const_int_overflowing", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
- pub fn overflowing_div(self, rhs: Self) -> (Self, bool) {
+ pub const fn overflowing_div(self, rhs: Self) -> (Self, bool) {
if self == Self::min_value() && rhs == -1 {
(self, true)
} else {
```"),
#[inline]
#[stable(feature = "wrapping", since = "1.7.0")]
+ #[rustc_const_unstable(feature = "const_int_overflowing", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
- pub fn overflowing_rem(self, rhs: Self) -> (Self, bool) {
+ pub const fn overflowing_rem(self, rhs: Self) -> (Self, bool) {
if self == Self::min_value() && rhs == -1 {
(0, true)
} else {
```"),
#[inline]
#[stable(feature = "wrapping", since = "1.7.0")]
+ #[rustc_const_unstable(feature = "const_int_overflowing", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
- pub fn overflowing_div(self, rhs: Self) -> (Self, bool) {
+ pub const fn overflowing_div(self, rhs: Self) -> (Self, bool) {
(self / rhs, false)
}
}
```"),
#[inline]
#[stable(feature = "wrapping", since = "1.7.0")]
+ #[rustc_const_unstable(feature = "const_int_overflowing", issue = "53718")]
#[must_use = "this returns the result of the operation, \
without modifying the original"]
- pub fn overflowing_rem(self, rhs: Self) -> (Self, bool) {
+ pub const fn overflowing_rem(self, rhs: Self) -> (Self, bool) {
(self % rhs, false)
}
}