Skip to content

Commit 7d91d42

Browse files
committed
Stabilize int_abs_diff in 1.60.0.
1 parent 4e8fb74 commit 7d91d42

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

library/core/src/num/int_macros.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -2419,14 +2419,13 @@ macro_rules! int_impl {
24192419
/// Basic usage:
24202420
///
24212421
/// ```
2422-
/// #![feature(int_abs_diff)]
24232422
#[doc = concat!("assert_eq!(100", stringify!($SelfT), ".abs_diff(80), 20", stringify!($UnsignedT), ");")]
24242423
#[doc = concat!("assert_eq!(100", stringify!($SelfT), ".abs_diff(110), 10", stringify!($UnsignedT), ");")]
24252424
#[doc = concat!("assert_eq!((-100", stringify!($SelfT), ").abs_diff(80), 180", stringify!($UnsignedT), ");")]
24262425
#[doc = concat!("assert_eq!((-100", stringify!($SelfT), ").abs_diff(-120), 20", stringify!($UnsignedT), ");")]
24272426
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.abs_diff(", stringify!($SelfT), "::MAX), ", stringify!($UnsignedT), "::MAX);")]
24282427
/// ```
2429-
#[unstable(feature = "int_abs_diff", issue = "89492")]
2428+
#[stable(feature = "int_abs_diff", since = "1.60.0")]
24302429
#[must_use = "this returns the result of the operation, \
24312430
without modifying the original"]
24322431
#[inline]

library/core/src/num/uint_macros.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1634,11 +1634,10 @@ macro_rules! uint_impl {
16341634
/// Basic usage:
16351635
///
16361636
/// ```
1637-
/// #![feature(int_abs_diff)]
16381637
#[doc = concat!("assert_eq!(100", stringify!($SelfT), ".abs_diff(80), 20", stringify!($SelfT), ");")]
16391638
#[doc = concat!("assert_eq!(100", stringify!($SelfT), ".abs_diff(110), 10", stringify!($SelfT), ");")]
16401639
/// ```
1641-
#[unstable(feature = "int_abs_diff", issue = "89492")]
1640+
#[stable(feature = "int_abs_diff", since = "1.60.0")]
16421641
#[must_use = "this returns the result of the operation, \
16431642
without modifying the original"]
16441643
#[inline]

0 commit comments

Comments
 (0)