Currently, slice iterators over ZSTs store `end = start.wrapping_byte_add(len)`. That's slightly convenient for `is_empty`, but kinda annoying for pretty much everything else -- see bugs like 42789, for example. This PR instead changes it to just `end = ptr::invalid(len)` instead. That's easier to think about (IMHO, at least) as well as easier to represent. |
||
|---|---|---|
| .. | ||
| alignment.rs | ||
| const_ptr.rs | ||
| metadata.rs | ||
| mod.rs | ||
| mut_ptr.rs | ||
| non_null.rs | ||
| unique.rs | ||