From 5571dd061dac07644b9d9a3e799deefbd9971496 Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Fri, 14 Apr 2023 13:04:58 +0000 Subject: fix broken intradoclinks --- compiler/rustc_data_structures/src/aligned.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'compiler/rustc_data_structures') diff --git a/compiler/rustc_data_structures/src/aligned.rs b/compiler/rustc_data_structures/src/aligned.rs index 7ac073539fb..0e5ecfd9bff 100644 --- a/compiler/rustc_data_structures/src/aligned.rs +++ b/compiler/rustc_data_structures/src/aligned.rs @@ -4,6 +4,8 @@ use std::ptr::Alignment; /// /// This is equivalent to [`mem::align_of`], but also works for some unsized /// types (e.g. slices or rustc's `List`s). +/// +/// [`mem::align_of`]: std::mem::align_of pub const fn align_of() -> Alignment { T::ALIGN } @@ -16,7 +18,7 @@ pub const fn align_of() -> Alignment { /// is [`mem::align_of()`], for unsized types it depends on the type, for /// example `[T]` has alignment of `T`. /// -/// [`mem::align_of()`]: mem::align_of +/// [`mem::align_of()`]: std::mem::align_of pub unsafe trait Aligned { /// Alignment of `Self`. const ALIGN: Alignment; -- cgit 1.4.1-3-g733a5