Skip to content

Commit 09cda40

Browse files
authored
[transmute] Update TryTransmuteFromPtr proof (#2455)
This language was made stale by the recent change to `PtrInner`'s invariants. gherrit-pr-id: I9e6ee4b276bf7a6ccec7b8cfbb44afd61dd36dfa
1 parent 31cfbd7 commit 09cda40

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/pointer/transmute.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,9 @@ use crate::{pointer::invariant::*, FromBytes, Immutable, IntoBytes, Unalign};
7070
///
7171
/// First, all of `src`'s `PtrInner` invariants are upheld. `src`'s address and
7272
/// metadata are unchanged, so:
73-
/// - If its referent is not zero sized, then it is still derived from a valid
74-
/// allocation, `A`
7573
/// - If its referent is not zero sized, then it still has valid provenance for
74+
/// its referent, which is still entirely contained in some Rust allocation,
7675
/// `A`
77-
/// - If its referent is not zero sized, then it addresses a byte range entirely
78-
/// contained in `A`
79-
/// - The length of its referent fits in an `isize`
80-
/// - Its referent does not wrap around the address space
8176
/// - If its referent is not zero sized, `A` is guaranteed to live for at least
8277
/// `'a`
8378
///

0 commit comments

Comments
 (0)