Skip to content

Commit 0570340

Browse files
committed
Cargo.toml: add transparentwrapper_extra to latest_stable_rust, and expand on comment for alloc_uninit.
src/checked.rs: Add doc-link.
1 parent 227d7fe commit 0570340

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ transparentwrapper_extra = []
4747

4848
const_zeroed = [] # MSRV 1.75.0: support const `zeroed()`
4949

50-
alloc_uninit = [] # MSRV 1.82.0: support `zeroed_*rc*`
50+
# MSRV 1.82.0: support `zeroed_*rc*` when combined with `extern_crate_alloc`
51+
alloc_uninit = []
5152

5253
# Do not use if you can avoid it, because this is **unsound**!!!!
5354
unsound_ptr_pod_impl = []
@@ -69,6 +70,7 @@ latest_stable_rust = [
6970
"min_const_generics",
7071
"must_cast",
7172
"track_caller",
73+
"transparentwrapper_extra",
7274
"wasm_simd",
7375
"zeroable_atomics",
7476
"zeroable_maybe_uninit",

src/checked.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ pub fn from_bytes_mut<T: NoUninit + CheckedBitPattern>(s: &mut [u8]) -> &mut T {
438438
/// Reads the slice into a `T` value.
439439
///
440440
/// ## Panics
441-
/// * This is like `try_pod_read_unaligned` but will panic on failure.
441+
/// * This is like [`try_pod_read_unaligned`] but will panic on failure.
442442
#[inline]
443443
#[cfg_attr(feature = "track_caller", track_caller)]
444444
pub fn pod_read_unaligned<T: CheckedBitPattern>(bytes: &[u8]) -> T {

0 commit comments

Comments
 (0)