Move to intra-doc links for /library/core/src/intrinsics.rs#75705
Move to intra-doc links for /library/core/src/intrinsics.rs#75705bors merged 17 commits intorust-lang:masterfrom
Conversation
|
(rust_highfive has picked a reviewer for you, use r? to override) |
You can add the anchors to the end of the intra-doc links and they'll still resolve. |
That seems weird ... |
|
Don't have time to review this fully so will defer to @LukasKalbertodt, but from the description you wrote this seems fine after you fix the anchor links. |
|
r? @jyn514 I found the time 😆 |
jyn514
left a comment
There was a problem hiding this comment.
It would also be nice to change `crate::sync::atomic` to a link: [crate::sync::atomic].
library/core/src/intrinsics.rs
Outdated
| /// [`Ordering::SeqCst`](crate::sync::atomic::Ordering::SeqCst) | ||
| /// as the `order`. For example, | ||
| /// [`AtomicBool::load`](../../std/sync/atomic/struct.AtomicBool.html#method.load). | ||
| /// [`AtomicBool::load`](crate::sync::atomic::AtomicBool::load). |
There was a problem hiding this comment.
Same comment about use crate::sync::atomic::AtomicBool;.
library/core/src/intrinsics.rs
Outdated
| /// [`Ordering::SeqCst`](crate::sync::atomic::Ordering::SeqCst) | ||
| /// as the `order`. For example, | ||
| /// [`AtomicI32::fetch_max`](../../std/sync/atomic/struct.AtomicI32.html#method.fetch_max). | ||
| /// [`AtomicI32::fetch_max`](crate::sync::atomic::AtomicI32::fetch_max). |
There was a problem hiding this comment.
Same comment about use crate::sync::atomic::AtomicI32;
|
Pretty good suggestions, this cleans up the file a bit. I will integrate the changes and come up with another commit. Thanks. |
|
@bors r+ rollup |
|
📌 Commit 37b6c24 has been approved by |
Rollup of 12 pull requests Successful merges: - rust-lang#75705 (Move to intra-doc links for /library/core/src/intrinsics.rs) - rust-lang#75711 (Split `astconv.rs` into its own submodule) - rust-lang#75718 (Don't count variants/fields/consts/associated types in doc-coverage doc examples) - rust-lang#75725 (Use intra-doc-links in `alloc`) - rust-lang#75745 (Remove duplication in `fold_item`) - rust-lang#75753 (Another motivation for CFG: return-oriented programming) - rust-lang#75769 (Minor, remove double nesting of a test module) - rust-lang#75771 (Extend normalization in const-eval-query-stack test) - rust-lang#75781 (More inline asm register name fixups for LLVM) - rust-lang#75782 (Convert core/src/str/pattern.rs to Intra-doc links) - rust-lang#75787 (Use intra-doc-links in `core::ops::*`) - rust-lang#75788 (MIR call terminator represents diverging calls too) Failed merges: - rust-lang#75773 (Introduce expect snapshot testing library into rustc) r? @ghost
Helps with #75080.
@rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc
Known issues:
The following f32 and f64 primitive methods cannot be resolved:
f32/f64::powi
f32/f64::sqrt
f32/f64::sin
f32/f64::cos
f32/f64::powf
f32/f64::exp
f32/f64::exp2
f32/f64::ln
f32/f64::log2
f32/f64::log10
f32/f64::mul_add
f32/f64::abs
f32/f64::copysign
f32/f64::floor
f32/f64::ceil
f32/f64::trunc
f32/f64::round
Links from core to std:
[
std::pointer::*][
std::process::abort][
from_raw_parts][
Vec::append]Links with anchors?
I provided a separate commit that replaced links with anchors by intra-doc links.
Here the anchor location information gets lost, so its questionable whether to
actually replace those links.