Skip to content

[transmute] Update TryTransmuteFromPtr proof #2455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 19, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/pointer/transmute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,9 @@ use crate::{pointer::invariant::*, FromBytes, Immutable, IntoBytes, Unalign};
///
/// First, all of `src`'s `PtrInner` invariants are upheld. `src`'s address and
/// metadata are unchanged, so:
/// - If its referent is not zero sized, then it is still derived from a valid
/// allocation, `A`
/// - If its referent is not zero sized, then it still has valid provenance for
/// its referent, which is still entirely contained in some Rust allocation,
/// `A`
/// - If its referent is not zero sized, then it addresses a byte range entirely
/// contained in `A`
/// - The length of its referent fits in an `isize`
/// - Its referent does not wrap around the address space
/// - If its referent is not zero sized, `A` is guaranteed to live for at least
/// `'a`
///
Expand Down
Loading