Skip to content

Commit 1d9405f

Browse files
committed
Auto merge of #52206 - RalfJung:zst-slices, r=alexcrichton
slices: fix ZST slice iterators making up pointers; debug_assert alignment in from_raw_parts This fixes the problem that we are fabricating pointers out of thin air. I also managed to share more code between the mutable and shared iterators, while reducing the amount of macros. I am not sure how useful it really is to add a `debug_assert!` in libcore. Everybody gets a release version of that anyway, right? Is there at least a CI job that runs the test suite with a debug version? Fixes #42789
2 parents 97085f9 + 9fcf2c9 commit 1d9405f

File tree

2 files changed

+277
-212
lines changed

2 files changed

+277
-212
lines changed

0 commit comments

Comments
 (0)