Skip to content

Commit 8539425

Browse files
committed
Stabilize unsigned_abs
1 parent 7a9b552 commit 8539425

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/num/int_macros.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1158,12 +1158,12 @@ macro_rules! int_impl {
11581158
/// Basic usage:
11591159
///
11601160
/// ```
1161-
/// #![feature(unsigned_abs)]
11621161
#[doc = concat!("assert_eq!(100", stringify!($SelfT), ".unsigned_abs(), 100", stringify!($UnsignedT), ");")]
11631162
#[doc = concat!("assert_eq!((-100", stringify!($SelfT), ").unsigned_abs(), 100", stringify!($UnsignedT), ");")]
11641163
/// assert_eq!((-128i8).unsigned_abs(), 128u8);
11651164
/// ```
1166-
#[unstable(feature = "unsigned_abs", issue = "74913")]
1165+
#[stable(feature = "unsigned_abs", since = "1.51.0")]
1166+
#[rustc_const_stable(feature = "unsigned_abs", since = "1.51.0")]
11671167
#[inline]
11681168
pub const fn unsigned_abs(self) -> $UnsignedT {
11691169
self.wrapping_abs() as $UnsignedT

0 commit comments

Comments
 (0)