File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,6 @@ pub fn spin_loop() {
98
98
/// An identity function that *__hints__* to the compiler to be maximally pessimistic about what
99
99
/// `black_box` could do.
100
100
///
101
- /// [`std::convert::identity`]: https://doc.rust-lang.org/core/convert/fn.identity.html
102
- ///
103
101
/// Unlike [`std::convert::identity`], a Rust compiler is encouraged to assume that `black_box` can
104
102
/// use `dummy` in any possible valid way that Rust code is allowed to without introducing undefined
105
103
/// behavior in the calling code. This property makes `black_box` useful for writing code in which
@@ -108,6 +106,8 @@ pub fn spin_loop() {
108
106
/// Note however, that `black_box` is only (and can only be) provided on a "best-effort" basis. The
109
107
/// extent to which it can block optimisations may vary depending upon the platform and code-gen
110
108
/// backend used. Programs cannot rely on `black_box` for *correctness* in any way.
109
+ ///
110
+ /// [`std::convert::identity`]: crate::convert::identity
111
111
#[ cfg_attr( not( miri) , inline) ]
112
112
#[ cfg_attr( miri, inline( never) ) ]
113
113
#[ unstable( feature = "test" , issue = "50297" ) ]
You can’t perform that action at this time.
0 commit comments