diff --git a/Cargo.toml b/Cargo.toml index 5476e2c..7aa2fe0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,7 +49,8 @@ transparentwrapper_extra = [] const_zeroed = [] # MSRV 1.75.0: support const `zeroed()` -alloc_uninit = [] # MSRV 1.82.0: support `zeroed_*rc*` +# MSRV 1.82.0: support `zeroed_*rc*` when combined with `extern_crate_alloc` +alloc_uninit = [] # Do not use if you can avoid it, because this is **unsound**!!!! unsound_ptr_pod_impl = [] @@ -73,6 +74,7 @@ latest_stable_rust = [ "must_cast", "must_cast_extra", "track_caller", + "transparentwrapper_extra", "wasm_simd", "zeroable_atomics", "zeroable_maybe_uninit", diff --git a/src/checked.rs b/src/checked.rs index 05e0137..5e89133 100644 --- a/src/checked.rs +++ b/src/checked.rs @@ -438,7 +438,7 @@ pub fn from_bytes_mut(s: &mut [u8]) -> &mut T { /// Reads the slice into a `T` value. /// /// ## Panics -/// * This is like `try_pod_read_unaligned` but will panic on failure. +/// * This is like [`try_pod_read_unaligned`] but will panic on failure. #[inline] #[cfg_attr(feature = "track_caller", track_caller)] pub fn pod_read_unaligned(bytes: &[u8]) -> T {