Skip to content

Commit 687d20a

Browse files
committed
Mark int_abs_diff as const stable.
1 parent 7d91d42 commit 687d20a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

library/core/src/num/int_macros.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2426,6 +2426,7 @@ macro_rules! int_impl {
24262426
#[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.abs_diff(", stringify!($SelfT), "::MAX), ", stringify!($UnsignedT), "::MAX);")]
24272427
/// ```
24282428
#[stable(feature = "int_abs_diff", since = "1.60.0")]
2429+
#[rustc_const_stable(feature = "int_abs_diff", since = "1.60.0")]
24292430
#[must_use = "this returns the result of the operation, \
24302431
without modifying the original"]
24312432
#[inline]

library/core/src/num/uint_macros.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1638,6 +1638,7 @@ macro_rules! uint_impl {
16381638
#[doc = concat!("assert_eq!(100", stringify!($SelfT), ".abs_diff(110), 10", stringify!($SelfT), ");")]
16391639
/// ```
16401640
#[stable(feature = "int_abs_diff", since = "1.60.0")]
1641+
#[rustc_const_stable(feature = "int_abs_diff", since = "1.60.0")]
16411642
#[must_use = "this returns the result of the operation, \
16421643
without modifying the original"]
16431644
#[inline]

0 commit comments

Comments
 (0)