diff --git a/arrow-buffer/src/buffer/mutable.rs b/arrow-buffer/src/buffer/mutable.rs index 72ea9f1090f1..361f7369c91d 100644 --- a/arrow-buffer/src/buffer/mutable.rs +++ b/arrow-buffer/src/buffer/mutable.rs @@ -483,7 +483,7 @@ fn dangling_ptr() -> NonNull { #[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))] {