From 50392ccc5a38f2e4580c67d51836f5add64f7d48 Mon Sep 17 00:00:00 2001 From: Scott McMurray Date: Fri, 15 Mar 2024 13:09:04 -0700 Subject: [PATCH] Workaround issue 122566 --- library/core/src/num/int_macros.rs | 6 +++--- library/core/src/num/uint_macros.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/library/core/src/num/int_macros.rs b/library/core/src/num/int_macros.rs index 9101d5064f9e3..2fec8ef238104 100644 --- a/library/core/src/num/int_macros.rs +++ b/library/core/src/num/int_macros.rs @@ -504,7 +504,7 @@ macro_rules! int_impl { #[doc = concat!("`self + rhs > ", stringify!($SelfT), "::MAX` or `self + rhs < ", stringify!($SelfT), "::MIN`,")] /// i.e. when [`checked_add`] would return `None`. /// - /// [`unwrap_unchecked`]: Option::unwrap_unchecked + /// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked #[doc = concat!("[`checked_add`]: ", stringify!($SelfT), "::checked_add")] #[doc = concat!("[`wrapping_add`]: ", stringify!($SelfT), "::wrapping_add")] #[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")] @@ -646,7 +646,7 @@ macro_rules! int_impl { #[doc = concat!("`self - rhs > ", stringify!($SelfT), "::MAX` or `self - rhs < ", stringify!($SelfT), "::MIN`,")] /// i.e. when [`checked_sub`] would return `None`. /// - /// [`unwrap_unchecked`]: Option::unwrap_unchecked + /// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked #[doc = concat!("[`checked_sub`]: ", stringify!($SelfT), "::checked_sub")] #[doc = concat!("[`wrapping_sub`]: ", stringify!($SelfT), "::wrapping_sub")] #[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")] @@ -788,7 +788,7 @@ macro_rules! int_impl { #[doc = concat!("`self * rhs > ", stringify!($SelfT), "::MAX` or `self * rhs < ", stringify!($SelfT), "::MIN`,")] /// i.e. when [`checked_mul`] would return `None`. /// - /// [`unwrap_unchecked`]: Option::unwrap_unchecked + /// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked #[doc = concat!("[`checked_mul`]: ", stringify!($SelfT), "::checked_mul")] #[doc = concat!("[`wrapping_mul`]: ", stringify!($SelfT), "::wrapping_mul")] #[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")] diff --git a/library/core/src/num/uint_macros.rs b/library/core/src/num/uint_macros.rs index c098f1894a610..f76f110fc4e3b 100644 --- a/library/core/src/num/uint_macros.rs +++ b/library/core/src/num/uint_macros.rs @@ -512,7 +512,7 @@ macro_rules! uint_impl { #[doc = concat!("`self + rhs > ", stringify!($SelfT), "::MAX` or `self + rhs < ", stringify!($SelfT), "::MIN`,")] /// i.e. when [`checked_add`] would return `None`. /// - /// [`unwrap_unchecked`]: Option::unwrap_unchecked + /// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked #[doc = concat!("[`checked_add`]: ", stringify!($SelfT), "::checked_add")] #[doc = concat!("[`wrapping_add`]: ", stringify!($SelfT), "::wrapping_add")] #[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")] @@ -660,7 +660,7 @@ macro_rules! uint_impl { #[doc = concat!("`self - rhs > ", stringify!($SelfT), "::MAX` or `self - rhs < ", stringify!($SelfT), "::MIN`,")] /// i.e. when [`checked_sub`] would return `None`. /// - /// [`unwrap_unchecked`]: Option::unwrap_unchecked + /// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked #[doc = concat!("[`checked_sub`]: ", stringify!($SelfT), "::checked_sub")] #[doc = concat!("[`wrapping_sub`]: ", stringify!($SelfT), "::wrapping_sub")] #[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")] @@ -746,7 +746,7 @@ macro_rules! uint_impl { #[doc = concat!("`self * rhs > ", stringify!($SelfT), "::MAX` or `self * rhs < ", stringify!($SelfT), "::MIN`,")] /// i.e. when [`checked_mul`] would return `None`. /// - /// [`unwrap_unchecked`]: Option::unwrap_unchecked + /// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked #[doc = concat!("[`checked_mul`]: ", stringify!($SelfT), "::checked_mul")] #[doc = concat!("[`wrapping_mul`]: ", stringify!($SelfT), "::wrapping_mul")] #[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]