We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef63fb9 commit e09896dCopy full SHA for e09896d
arrow-buffer/src/buffer/mutable.rs
@@ -483,7 +483,7 @@ fn dangling_ptr() -> NonNull<u8> {
483
#[cfg(miri)]
484
{
485
// 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)) }
+ unsafe { NonNull::new_unchecked(std::ptr::without_provenance_mut(ALIGNMENT)) }
487
}
488
#[cfg(not(miri))]
489
0 commit comments