Skip to content

Commit

Permalink
Auto merge of #52206 - RalfJung:zst-slices, r=alexcrichton
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Aug 2, 2018
2 parents 97085f9 + 9fcf2c9 commit 1d9405f
Show file tree
Hide file tree
Showing 2 changed files with 277 additions and 212 deletions.
Loading

0 comments on commit 1d9405f

Please sign in to comment.