]> git.lizzy.rs Git - rust.git/commitdiff
Added tracking issue numbers for int_abs_diff.
authorOrson Peters <orsonpeters@gmail.com>
Sun, 3 Oct 2021 15:44:07 +0000 (17:44 +0200)
committerOrson Peters <orsonpeters@gmail.com>
Sun, 3 Oct 2021 15:44:07 +0000 (17:44 +0200)
library/core/src/num/int_macros.rs
library/core/src/num/uint_macros.rs

index 187be5d47573a7fb505d82839ded707b502f4ad6..14a3a1dda8eb5e7cd14ae7bdbe9d622a88685e4b 100644 (file)
@@ -2244,7 +2244,7 @@ pub const fn abs(self) -> Self {
         #[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 = "none")]
+        #[unstable(feature = "int_abs_diff", issue = "89492")]
         #[inline]
         pub const fn abs_diff(self, other: Self) -> $UnsignedT {
             if self < other {
index a5f12447fdc32732cf66161c8b11e44facdad2c3..4fdba778b3406c8039494a990a34b42a1c31cd36 100644 (file)
@@ -1501,7 +1501,7 @@ pub const fn borrowing_sub(self, rhs: Self, borrow: bool) -> (Self, bool) {
         #[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 = "none")]
+        #[unstable(feature = "int_abs_diff", issue = "89492")]
         #[inline]
         pub const fn abs_diff(self, other: Self) -> Self {
             if mem::size_of::<Self>() == 1 {