Skip to content

Commit

Permalink
Updated invalid_mut to without_provenance_mut due to recent change in…
Browse files Browse the repository at this point in the history
… Rust nightly (#41)

Co-authored-by: abaxter <Adam Baxter>
  • Loading branch information
ambaxter committed Mar 7, 2024
1 parent 075ab27 commit 584d750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ impl<A: Alignment> Default for AlignedBytes<A> {
// Use strict pointer functions if enabled.
// See https://github.com/V0ldek/aligners/issues/34
#[cfg(miri)]
let raw_ptr = std::ptr::invalid_mut(A::size());
let raw_ptr = std::ptr::without_provenance_mut(A::size());
#[cfg(not(miri))]
let raw_ptr = A::size() as *mut u8;

Expand Down

0 comments on commit 584d750

Please sign in to comment.