diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2021-01-12 20:07:34 -0500 |
|---|---|---|
| committer | Jacob Pratt <jacob@jhpratt.dev> | 2021-01-12 20:07:34 -0500 |
| commit | 85394252e6079e8c094fedb8347358b39a5bb5d4 (patch) | |
| tree | 4d546575e05657321afc57f1e5439a64be197fc0 | |
| parent | 7a9b552cb1621c9c57898d147228aab32b65a7c3 (diff) | |
| download | rust-85394252e6079e8c094fedb8347358b39a5bb5d4.tar.gz rust-85394252e6079e8c094fedb8347358b39a5bb5d4.zip | |
Stabilize unsigned_abs
| -rw-r--r-- | library/core/src/num/int_macros.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/num/int_macros.rs b/library/core/src/num/int_macros.rs index 162ed7d1b8d..c2e941c6910 100644 --- a/library/core/src/num/int_macros.rs +++ b/library/core/src/num/int_macros.rs @@ -1158,12 +1158,12 @@ macro_rules! int_impl { /// Basic usage: /// /// ``` - /// #![feature(unsigned_abs)] #[doc = concat!("assert_eq!(100", stringify!($SelfT), ".unsigned_abs(), 100", stringify!($UnsignedT), ");")] #[doc = concat!("assert_eq!((-100", stringify!($SelfT), ").unsigned_abs(), 100", stringify!($UnsignedT), ");")] /// assert_eq!((-128i8).unsigned_abs(), 128u8); /// ``` - #[unstable(feature = "unsigned_abs", issue = "74913")] + #[stable(feature = "unsigned_abs", since = "1.51.0")] + #[rustc_const_stable(feature = "unsigned_abs", since = "1.51.0")] #[inline] pub const fn unsigned_abs(self) -> $UnsignedT { self.wrapping_abs() as $UnsignedT |
