Skip to content

Commit

Permalink
Auto merge of #52206 - RalfJung:zst-slices, r=<try>
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 Jul 30, 2018
2 parents e437841 + 8dac6e3 commit 77cedc9
Show file tree
Hide file tree
Showing 3 changed files with 321 additions and 212 deletions.
Loading

0 comments on commit 77cedc9

Please sign in to comment.