From e09896d9ae66d226eb864d0dd645cd02bbef1346 Mon Sep 17 00:00:00 2001 From: Jeffrey Vo Date: Fri, 23 Feb 2024 01:20:07 +1100 Subject: [PATCH] Miri fix: Rename invalid_mut to without_provenance_mut (#5418) --- arrow-buffer/src/buffer/mutable.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))] {