Skip to content

v0.0.3

Compare
Choose a tag to compare
@V0ldek V0ldek released this 18 May 00:50
· 52 commits to main since this release
5aa17e6

[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 breaks align_offset to always return usize::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