Skip to content

Commit e09896d

Browse files
authored
Miri fix: Rename invalid_mut to without_provenance_mut (#5418)
1 parent ef63fb9 commit e09896d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arrow-buffer/src/buffer/mutable.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ fn dangling_ptr() -> NonNull<u8> {
483483
#[cfg(miri)]
484484
{
485485
// Since miri implies a nightly rust version we can use the unstable strict_provenance feature
486-
unsafe { NonNull::new_unchecked(std::ptr::invalid_mut(ALIGNMENT)) }
486+
unsafe { NonNull::new_unchecked(std::ptr::without_provenance_mut(ALIGNMENT)) }
487487
}
488488
#[cfg(not(miri))]
489489
{

0 commit comments

Comments
 (0)