Mark int_abs_diff as const stable.
This commit is contained in:
parent
7d91d42993
commit
687d20afb8
@ -2426,6 +2426,7 @@ pub const fn abs(self) -> Self {
|
||||
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.abs_diff(", stringify!($SelfT), "::MAX), ", stringify!($UnsignedT), "::MAX);")]
|
||||
/// ```
|
||||
#[stable(feature = "int_abs_diff", since = "1.60.0")]
|
||||
#[rustc_const_stable(feature = "int_abs_diff", since = "1.60.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
@ -1638,6 +1638,7 @@ pub const fn borrowing_sub(self, rhs: Self, borrow: bool) -> (Self, bool) {
|
||||
#[doc = concat!("assert_eq!(100", stringify!($SelfT), ".abs_diff(110), 10", stringify!($SelfT), ");")]
|
||||
/// ```
|
||||
#[stable(feature = "int_abs_diff", since = "1.60.0")]
|
||||
#[rustc_const_stable(feature = "int_abs_diff", since = "1.60.0")]
|
||||
#[must_use = "this returns the result of the operation, \
|
||||
without modifying the original"]
|
||||
#[inline]
|
||||
|
Loading…
Reference in New Issue
Block a user