Skip to content

Commit 50392cc

Browse files
committed
Workaround issue 122566
1 parent 9eb26d7 commit 50392cc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: library/core/src/num/int_macros.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ macro_rules! int_impl {
504504
#[doc = concat!("`self + rhs > ", stringify!($SelfT), "::MAX` or `self + rhs < ", stringify!($SelfT), "::MIN`,")]
505505
/// i.e. when [`checked_add`] would return `None`.
506506
///
507-
/// [`unwrap_unchecked`]: Option::unwrap_unchecked
507+
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
508508
#[doc = concat!("[`checked_add`]: ", stringify!($SelfT), "::checked_add")]
509509
#[doc = concat!("[`wrapping_add`]: ", stringify!($SelfT), "::wrapping_add")]
510510
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
@@ -646,7 +646,7 @@ macro_rules! int_impl {
646646
#[doc = concat!("`self - rhs > ", stringify!($SelfT), "::MAX` or `self - rhs < ", stringify!($SelfT), "::MIN`,")]
647647
/// i.e. when [`checked_sub`] would return `None`.
648648
///
649-
/// [`unwrap_unchecked`]: Option::unwrap_unchecked
649+
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
650650
#[doc = concat!("[`checked_sub`]: ", stringify!($SelfT), "::checked_sub")]
651651
#[doc = concat!("[`wrapping_sub`]: ", stringify!($SelfT), "::wrapping_sub")]
652652
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
@@ -788,7 +788,7 @@ macro_rules! int_impl {
788788
#[doc = concat!("`self * rhs > ", stringify!($SelfT), "::MAX` or `self * rhs < ", stringify!($SelfT), "::MIN`,")]
789789
/// i.e. when [`checked_mul`] would return `None`.
790790
///
791-
/// [`unwrap_unchecked`]: Option::unwrap_unchecked
791+
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
792792
#[doc = concat!("[`checked_mul`]: ", stringify!($SelfT), "::checked_mul")]
793793
#[doc = concat!("[`wrapping_mul`]: ", stringify!($SelfT), "::wrapping_mul")]
794794
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]

Diff for: library/core/src/num/uint_macros.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ macro_rules! uint_impl {
512512
#[doc = concat!("`self + rhs > ", stringify!($SelfT), "::MAX` or `self + rhs < ", stringify!($SelfT), "::MIN`,")]
513513
/// i.e. when [`checked_add`] would return `None`.
514514
///
515-
/// [`unwrap_unchecked`]: Option::unwrap_unchecked
515+
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
516516
#[doc = concat!("[`checked_add`]: ", stringify!($SelfT), "::checked_add")]
517517
#[doc = concat!("[`wrapping_add`]: ", stringify!($SelfT), "::wrapping_add")]
518518
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
@@ -660,7 +660,7 @@ macro_rules! uint_impl {
660660
#[doc = concat!("`self - rhs > ", stringify!($SelfT), "::MAX` or `self - rhs < ", stringify!($SelfT), "::MIN`,")]
661661
/// i.e. when [`checked_sub`] would return `None`.
662662
///
663-
/// [`unwrap_unchecked`]: Option::unwrap_unchecked
663+
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
664664
#[doc = concat!("[`checked_sub`]: ", stringify!($SelfT), "::checked_sub")]
665665
#[doc = concat!("[`wrapping_sub`]: ", stringify!($SelfT), "::wrapping_sub")]
666666
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]
@@ -746,7 +746,7 @@ macro_rules! uint_impl {
746746
#[doc = concat!("`self * rhs > ", stringify!($SelfT), "::MAX` or `self * rhs < ", stringify!($SelfT), "::MIN`,")]
747747
/// i.e. when [`checked_mul`] would return `None`.
748748
///
749-
/// [`unwrap_unchecked`]: Option::unwrap_unchecked
749+
/// [`unwrap_unchecked`]: option/enum.Option.html#method.unwrap_unchecked
750750
#[doc = concat!("[`checked_mul`]: ", stringify!($SelfT), "::checked_mul")]
751751
#[doc = concat!("[`wrapping_mul`]: ", stringify!($SelfT), "::wrapping_mul")]
752752
#[stable(feature = "unchecked_math", since = "CURRENT_RUSTC_VERSION")]

0 commit comments

Comments
 (0)