diff --git a/README.md b/README.md index d8d8493..2f1dcc6 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,7 @@ # bytemuck A crate for mucking around with piles of bytes. + +## Stability + +The goal is to stay at 1.0 until at least the next edition of Rust. diff --git a/src/pod.rs b/src/pod.rs index 128dc21..10d27b4 100644 --- a/src/pod.rs +++ b/src/pod.rs @@ -62,6 +62,8 @@ unsafe impl Pod for Option> {} unsafe impl Pod for PhantomData {} unsafe impl Pod for ManuallyDrop {} +// Note(Lokathor): MaybeUninit can NEVER be Pod. + impl_unsafe_marker_for_array!( Pod, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 48, 64, 96, 128, 256, diff --git a/src/zeroable.rs b/src/zeroable.rs index 81885f2..fb96204 100644 --- a/src/zeroable.rs +++ b/src/zeroable.rs @@ -60,7 +60,9 @@ unsafe impl Zeroable for *const T {} unsafe impl Zeroable for Option> {} unsafe impl Zeroable for PhantomData {} unsafe impl Zeroable for ManuallyDrop {} -unsafe impl Zeroable for MaybeUninit {} + +// 2.0: add MaybeUninit +//unsafe impl Zeroable for MaybeUninit {} unsafe impl Zeroable for (A,) {} unsafe impl Zeroable for (A, B) {}