Skip to content

Commit

Permalink
Miri fix: Rename invalid_mut to without_provenance_mut (#5418)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefffrey authored Feb 22, 2024
1 parent ef63fb9 commit e09896d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrow-buffer/src/buffer/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ fn dangling_ptr() -> NonNull<u8> {
#[cfg(miri)]
{
// Since miri implies a nightly rust version we can use the unstable strict_provenance feature
unsafe { NonNull::new_unchecked(std::ptr::invalid_mut(ALIGNMENT)) }
unsafe { NonNull::new_unchecked(std::ptr::without_provenance_mut(ALIGNMENT)) }
}
#[cfg(not(miri))]
{
Expand Down

0 comments on commit e09896d

Please sign in to comment.