Skip to content

Commit 5609465

Browse files
authored
Rollup merge of #93735 - m-ou-se:stabilize-int-abs-diff, r=joshtriplett
Stabilize int_abs_diff in 1.60.0. FCP finished here: #89492 (comment)
2 parents a508448 + 687d20a commit 5609465

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

library/core/src/num/int_macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2420,14 +2420,14 @@ macro_rules! int_impl {
24202420
/// Basic usage:
24212421
///
24222422
/// ```
2423-
/// #![feature(int_abs_diff)]
24242423
#[doc = concat!("assert_eq!(100", stringify!($SelfT), ".abs_diff(80), 20", stringify!($UnsignedT), ");")]
24252424
#[doc = concat!("assert_eq!(100", stringify!($SelfT), ".abs_diff(110), 10", stringify!($UnsignedT), ");")]
24262425
#[doc = concat!("assert_eq!((-100", stringify!($SelfT), ").abs_diff(80), 180", stringify!($UnsignedT), ");")]
24272426
#[doc = concat!("assert_eq!((-100", stringify!($SelfT), ").abs_diff(-120), 20", stringify!($UnsignedT), ");")]
24282427
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.abs_diff(", stringify!($SelfT), "::MAX), ", stringify!($UnsignedT), "::MAX);")]
24292428
/// ```
2430-
#[unstable(feature = "int_abs_diff", issue = "89492")]
2429+
#[stable(feature = "int_abs_diff", since = "1.60.0")]
2430+
#[rustc_const_stable(feature = "int_abs_diff", since = "1.60.0")]
24312431
#[must_use = "this returns the result of the operation, \
24322432
without modifying the original"]
24332433
#[inline]

library/core/src/num/uint_macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1635,11 +1635,11 @@ macro_rules! uint_impl {
16351635
/// Basic usage:
16361636
///
16371637
/// ```
1638-
/// #![feature(int_abs_diff)]
16391638
#[doc = concat!("assert_eq!(100", stringify!($SelfT), ".abs_diff(80), 20", stringify!($SelfT), ");")]
16401639
#[doc = concat!("assert_eq!(100", stringify!($SelfT), ".abs_diff(110), 10", stringify!($SelfT), ");")]
16411640
/// ```
1642-
#[unstable(feature = "int_abs_diff", issue = "89492")]
1641+
#[stable(feature = "int_abs_diff", since = "1.60.0")]
1642+
#[rustc_const_stable(feature = "int_abs_diff", since = "1.60.0")]
16431643
#[must_use = "this returns the result of the operation, \
16441644
without modifying the original"]
16451645
#[inline]

0 commit comments

Comments
 (0)