v0.0.3
[0.0.3] - 2022-05-18
Bug Fixes
Impl of Default
returning unaligned ptrs.
- Implementations of
Default
for AlignedBytes
&AlignedSlice
&mut AlignedSlice
- were incorrect by using
NonNull::dangling
as the pointer. - That pointer need not be aligned to the specified
Alignment
. - This was fixed by using std's
dangling
implementation tweaked to - the required alignment, while still not allocating.
Related: #11
Reliability
Allow miri symbolic-alignment-check.
- Miri's
-Zmiri-symbolic-alignment-check
breaksalign_offset
to always returnusize::MAX
(that is by design), so we need to fallback to regular cast-then-modulo alignment check for tests when running under Miri.
Related: #12