File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ use crate::intrinsics;
24
24
/// Otherwise, consider using the [`unreachable!`] macro, which does not allow
25
25
/// optimizations but will panic when executed.
26
26
///
27
- /// [`unreachable!`]: ../macro. unreachable.html
27
+ /// [`unreachable!`]: unreachable
28
28
///
29
29
/// # Example
30
30
///
@@ -61,7 +61,7 @@ pub const unsafe fn unreachable_unchecked() -> ! {
61
61
/// **Note**: On platforms that do not support receiving spin-loop hints this function does not
62
62
/// do anything at all.
63
63
///
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
65
65
#[ inline]
66
66
#[ unstable( feature = "renamed_spin_loop" , issue = "55002" ) ]
67
67
pub fn spin_loop ( ) {
@@ -99,7 +99,7 @@ pub fn spin_loop() {
99
99
/// An identity function that *__hints__* to the compiler to be maximally pessimistic about what
100
100
/// `black_box` could do.
101
101
///
102
- /// [`std::convert::identity`]: https://doc.rust-lang.org/core/ convert/fn. identity.html
102
+ /// [`std::convert::identity`]: crate:: convert:: identity
103
103
///
104
104
/// Unlike [`std::convert::identity`], a Rust compiler is encouraged to assume that `black_box` can
105
105
/// use `x` in any possible valid way that Rust code is allowed to without introducing undefined
You can’t perform that action at this time.
0 commit comments