Skip to content

Commit 527a685

Browse files
committed
Auto merge of #75783 - denisvasilik:intra-doc-links-core-alloc, r=jyn514
Move to intra-doc links for library/core/src/alloc/{layout, global, mod}.rs 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 from `core` to `alloc` could not be resolved. * [`slice`]: slice is a primitive type, but could not be resolved; had to use [`crate::slice`] instead.
2 parents 108e90c + 2500b6d commit 527a685

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: library/core/src/alloc/layout.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ impl Layout {
8585
/// # Safety
8686
///
8787
/// This function is unsafe as it does not verify the preconditions from
88-
/// [`Layout::from_size_align`](#method.from_size_align).
88+
/// [`Layout::from_size_align`].
8989
#[stable(feature = "alloc_layout", since = "1.28.0")]
9090
#[rustc_const_stable(feature = "alloc_layout", since = "1.28.0")]
9191
#[inline]
@@ -196,8 +196,7 @@ impl Layout {
196196
/// will *still* have size 16.
197197
///
198198
/// Returns an error if the combination of `self.size()` and the given
199-
/// `align` violates the conditions listed in
200-
/// [`Layout::from_size_align`](#method.from_size_align).
199+
/// `align` violates the conditions listed in [`Layout::from_size_align`].
201200
#[stable(feature = "alloc_layout_manipulation", since = "1.44.0")]
202201
#[inline]
203202
pub fn align_to(&self, align: usize) -> Result<Self, LayoutErr> {

0 commit comments

Comments
 (0)