rust/src/libcore/slice
bors 1d9405fb6c 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
2018-08-02 00:14:21 +00:00
..
memchr.rs fix memrchr in miri 2018-07-30 14:00:12 +02:00
mod.rs use the same length computation everywhere 2018-08-02 00:33:04 +02:00
rotate.rs fix safety-related comment in slice::rotate 2018-07-19 09:11:56 +02:00
sort.rs Stabilize feature sort_unstable 2017-07-02 02:09:21 +02:00