]> git.lizzy.rs Git - rust.git/commitdiff
Stabilize int_abs_diff in 1.60.0.
authorMara Bos <m-ou.se@m-ou.se>
Mon, 7 Feb 2022 10:55:19 +0000 (11:55 +0100)
committerMara Bos <m-ou.se@m-ou.se>
Mon, 7 Feb 2022 11:02:56 +0000 (12:02 +0100)
library/core/src/num/int_macros.rs
library/core/src/num/uint_macros.rs

index 79436c8e8ede485c5fc93fadd00c1cd6a6e8ffb0..ccacc224ed62d8fe1d47bf95f66d9b0e54f9d2ce 100644 (file)
@@ -2419,14 +2419,13 @@ pub const fn abs(self) -> Self {
         /// Basic usage:
         ///
         /// ```
-        /// #![feature(int_abs_diff)]
         #[doc = concat!("assert_eq!(100", stringify!($SelfT), ".abs_diff(80), 20", stringify!($UnsignedT), ");")]
         #[doc = concat!("assert_eq!(100", stringify!($SelfT), ".abs_diff(110), 10", stringify!($UnsignedT), ");")]
         #[doc = concat!("assert_eq!((-100", stringify!($SelfT), ").abs_diff(80), 180", stringify!($UnsignedT), ");")]
         #[doc = concat!("assert_eq!((-100", stringify!($SelfT), ").abs_diff(-120), 20", stringify!($UnsignedT), ");")]
         #[doc = concat!("assert_eq!(", stringify!($SelfT), "::MIN.abs_diff(", stringify!($SelfT), "::MAX), ", stringify!($UnsignedT), "::MAX);")]
         /// ```
-        #[unstable(feature = "int_abs_diff", issue = "89492")]
+        #[stable(feature = "int_abs_diff", since = "1.60.0")]
         #[must_use = "this returns the result of the operation, \
                       without modifying the original"]
         #[inline]
index 0bb654977764d48c7df40eefa5730247d8580a8c..7b6ae0252288337e9e8549798654a1039200c087 100644 (file)
@@ -1634,11 +1634,10 @@ pub const fn borrowing_sub(self, rhs: Self, borrow: bool) -> (Self, bool) {
         /// Basic usage:
         ///
         /// ```
-        /// #![feature(int_abs_diff)]
         #[doc = concat!("assert_eq!(100", stringify!($SelfT), ".abs_diff(80), 20", stringify!($SelfT), ");")]
         #[doc = concat!("assert_eq!(100", stringify!($SelfT), ".abs_diff(110), 10", stringify!($SelfT), ");")]
         /// ```
-        #[unstable(feature = "int_abs_diff", issue = "89492")]
+        #[stable(feature = "int_abs_diff", since = "1.60.0")]
         #[must_use = "this returns the result of the operation, \
                       without modifying the original"]
         #[inline]