-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move to intra-doc links for library/core/src/alloc/{layout, global, mod}.rs #75783
Move to intra-doc links for library/core/src/alloc/{layout, global, mod}.rs #75783
Conversation
r? @kennytm (rust_highfive has picked a reviewer for you, use r? to override) |
library/core/src/alloc/layout.rs
Outdated
@@ -145,7 +145,7 @@ impl Layout { | |||
/// | |||
/// - If `T` is `Sized`, this function is always safe to call. | |||
/// - If the unsized tail of `T` is: | |||
/// - a [slice], then the length of the slice tail must be an intialized | |||
/// - a [`crate::slice`], then the length of the slice tail must be an intialized |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This links to the module, not the primitive. Slices can't currently be linked to with intra-doc links: #63351, so you need to revert to the original link.
/// - a [`crate::slice`], then the length of the slice tail must be an intialized | |
/// - a [`crate::slice`], then the length of the slice tail must be an initialized |
r? @jyn514 |
@bors r+ rollup |
📌 Commit 2500b6d has been approved by |
☀️ Test successful - checks-actions, checks-azure |
Helps with #75080. The files already contained intra-doc links, so there are only minor changes.
@rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc
Known issues:
handle_alloc_error
]: Link fromcore
toalloc
could not be resolved.slice
]: slice is a primitive type, but could not be resolved; had to use [crate::slice
] instead.