Closed RalfJung closed 5 years ago
Could you re-export the offset_of
macro so this doesn't become a breaking change?
Done.
Thanks!
intrusive-collections showed up in the regressions in the crater run for https://github.com/rust-lang/rust/pull/66059; any chance we could get a new release that includes this PR?
Done.
Thanks!
In particular, this should avoid triggering the various ways in which we try to warn about misusage of
mem::zeroed
andmem::uninitialized
. It also doesn't need a feature gate to use the "right" approach for versions of Rust that do supportMaybeUninit
.Minimum Rust version of intrusive-rs seems to be Rust 1.31, so according to https://doc.rust-lang.org/edition-guide/rust-2018/macros/macro-changes.html#macros-with-crate-prefix using the
$crate::
prefix for macros should work.memoffset
supports Rust 1.25+, so that seems fine as well.Fixes https://github.com/Amanieu/intrusive-rs/issues/25.