Skip to content

Commit d6c589f

Browse files
authored
Cargo.toml: add transparentwrapper_extra to latest_stable_rust, and expand on comment for alloc_uninit. (#289)
src/checked.rs: Add doc-link.
1 parent 9801bb9 commit d6c589f

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
@@ -49,7 +49,8 @@ transparentwrapper_extra = []
4949

5050
const_zeroed = [] # MSRV 1.75.0: support const `zeroed()`
5151

52-
alloc_uninit = [] # MSRV 1.82.0: support `zeroed_*rc*`
52+
# MSRV 1.82.0: support `zeroed_*rc*` when combined with `extern_crate_alloc`
53+
alloc_uninit = []
5354

5455
# Do not use if you can avoid it, because this is **unsound**!!!!
5556
unsound_ptr_pod_impl = []
@@ -73,6 +74,7 @@ latest_stable_rust = [
7374
"must_cast",
7475
"must_cast_extra",
7576
"track_caller",
77+
"transparentwrapper_extra",
7678
"wasm_simd",
7779
"zeroable_atomics",
7880
"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)