diff options
| author | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-03-15 13:09:04 -0700 |
|---|---|---|
| committer | Scott McMurray <scottmcm@users.noreply.github.com> | 2024-03-15 13:09:04 -0700 |
| commit | 50392ccc5a38f2e4580c67d51836f5add64f7d48 (patch) | |
| tree | d3540f7ecbae6b496cb133bcfbb424b5660d451b /library/core | |
| parent | 9eb26d734e94c6719e286ff85c29eacf0f11976d (diff) | |
| download | rust-50392ccc5a38f2e4580c67d51836f5add64f7d48.tar.gz rust-50392ccc5a38f2e4580c67d51836f5add64f7d48.zip | |
Workaround issue 122566
Diffstat (limited to 'library/core')
| -rw-r--r-- | library/core/src/num/int_macros.rs | 6 | ||||
| -rw-r--r-- | 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 9101d5064f9..2fec8ef2381 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 c098f1894a6..f76f110fc4e 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")] |
