Skip to content

Commit 3c2eb18

Browse files
committed
Use intra-doc links
1 parent 08324fe commit 3c2eb18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/hint.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use crate::intrinsics;
2424
/// Otherwise, consider using the [`unreachable!`] macro, which does not allow
2525
/// optimizations but will panic when executed.
2626
///
27-
/// [`unreachable!`]: ../macro.unreachable.html
27+
/// [`unreachable!`]: unreachable
2828
///
2929
/// # Example
3030
///
@@ -61,7 +61,7 @@ pub const unsafe fn unreachable_unchecked() -> ! {
6161
/// **Note**: On platforms that do not support receiving spin-loop hints this function does not
6262
/// do anything at all.
6363
///
64-
/// [`core::sync::atomic::spin_loop_hint`]: ../sync/atomic/fn.spin_loop_hint.html
64+
/// [`core::sync::atomic::spin_loop_hint`]: crate::sync::atomic::spin_loop_hint
6565
#[inline]
6666
#[unstable(feature = "renamed_spin_loop", issue = "55002")]
6767
pub fn spin_loop() {
@@ -99,7 +99,7 @@ pub fn spin_loop() {
9999
/// An identity function that *__hints__* to the compiler to be maximally pessimistic about what
100100
/// `black_box` could do.
101101
///
102-
/// [`std::convert::identity`]: https://doc.rust-lang.org/core/convert/fn.identity.html
102+
/// [`std::convert::identity`]: crate::convert::identity
103103
///
104104
/// Unlike [`std::convert::identity`], a Rust compiler is encouraged to assume that `black_box` can
105105
/// use `x` in any possible valid way that Rust code is allowed to without introducing undefined

0 commit comments

Comments
 (0)