azecevic000 commented on code in PR #12141:
URL: https://github.com/apache/arrow-rs/pull/12141#discussion_r4790259462
##########
arrow-buffer/src/buffer/mutable.rs:
##########
@@ -927,23 +928,23 @@ impl MutableBuffer {
}
}
-/// Creates a non-null pointer with alignment of [`ALIGNMENT`]
-///
-/// This is similar to [`NonNull::dangling`]
+#[repr(align(256))]
+struct ZeroSizeArea {
+ _data: [u8; 1],
+}
Review Comment:
@mbutrovich Thank you for taking time to do a review. I added your
suggestion, I agree it makes it less probable that someone will remove or
change it accidentally.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]