Skip to content

Commit fe753c2

Browse files
authored
Condense validity language regarding provenance
1 parent 197ad6a commit fe753c2

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

library/core/src/mem/maybe_uninit.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -287,15 +287,6 @@ use crate::{fmt, intrinsics, ptr, slice};
287287
/// [provenance]: crate::ptr#provenance
288288
///
289289
/// [reference-byte]: ../../reference/memory-model.html#bytes
290-
///
291-
/// ## Provenance
292-
///
293-
/// As stated above, `MaybeUninit` permits any byte value at any byte offset. This includes values
294-
/// which contain [pointer provenance][provenance]. A possibly useful implication is that, for any
295-
/// value, `p: P`, which contains provenance, transmuting `p` to `MaybeUninit<[u8; size_of::<P>]>`
296-
/// and then back to `P` will produce a value identical to `p`, including provenance.
297-
///
298-
/// [provenance]: ../ptr/index.html#provenance
299290
#[stable(feature = "maybe_uninit", since = "1.36.0")]
300291
// Lang item so we can wrap other types in it. This is useful for coroutines.
301292
#[lang = "maybe_uninit"]

0 commit comments

Comments
 (0)