Rollup merge of #155493 - sorairolake:fix-alignment-doc-link, r=scottmcm

docs(num): fix stale link to `mem::Alignment`

This pull request updates a stale link to `mem::Alignment` in `num::IntErrorKind`.

In rust-lang/rust#153178, I added a link to `Alignment` in `IntErrorKind`, but I overlooked that `Alignment` had been moved from `core::ptr` to `core::mem`. Although it is still re-exported in `core::ptr`, this pull request points the link to its canonical location.

@rustbot label +A-docs
This commit is contained in:
Jonathan Brouwer
2026-04-20 08:14:13 +02:00
committed by GitHub
+1 -1
View File
@@ -122,7 +122,7 @@ pub enum IntErrorKind {
/// This variant will be emitted when converting an integer that is not a power of
/// two. This is required in some cases such as constructing an [`Alignment`].
///
/// [`Alignment`]: core::ptr::Alignment "ptr::Alignment"
/// [`Alignment`]: core::mem::Alignment "mem::Alignment"
#[unstable(feature = "try_from_int_error_kind", issue = "153978")]
// Also, #[unstable(feature = "ptr_alignment_type", issue = "102070")]
NotAPowerOfTwo,