From d28f48c399e1a6846fed5a8fb642e4beb3dac058 Mon Sep 17 00:00:00 2001 From: Michael Roth Date: Fri, 11 Oct 2024 13:08:08 +0200 Subject: [PATCH] Cite stable docs for bit validity of numeric types --- src/impls.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/impls.rs b/src/impls.rs index 05a198f463..678f8fb2e6 100644 --- a/src/impls.rs +++ b/src/impls.rs @@ -38,15 +38,12 @@ safety_comment! { /// - The only value >= 1 for which 1 is an integer multiple is 1 /// Therefore, the only possible alignment for `u8` and `i8` is 1. /// - /// [1] Per https://doc.rust-lang.org/beta/reference/types/numeric.html#bit-validity: + /// [1] Per https://doc.rust-lang.org/1.81.0/reference/types/numeric.html#bit-validity: /// /// For every numeric type, `T`, the bit validity of `T` is equivalent to /// the bit validity of `[u8; size_of::()]`. An uninitialized byte is /// not a valid `u8`. /// - /// TODO(https://github.com/rust-lang/reference/pull/1392): Once this text - /// is available on the Stable docs, cite those instead. - /// /// [2] https://doc.rust-lang.org/1.81.0/reference/type-layout.html#primitive-data-layout /// /// [3] Per https://doc.rust-lang.org/1.81.0/reference/type-layout.html#size-and-alignment: