summaryrefslogtreecommitdiff
path: root/tests/rustdoc-js-std/parser-errors.js
diff options
context:
space:
mode:
authorScott McMurray <scottmcm@users.noreply.github.com>2023-05-06 02:00:45 -0700
committerScott McMurray <scottmcm@users.noreply.github.com>2023-05-10 13:01:43 -0700
commit15aa7fad7ec83db399c8a85c6b6777d0efc7bc53 (patch)
tree536d70cd09ce950ce744c6e9975a16e92d71a941 /tests/rustdoc-js-std/parser-errors.js
parent50dff955a9367a4efc72b831549e368992807beb (diff)
downloadrust-15aa7fad7ec83db399c8a85c6b6777d0efc7bc53.tar.gz
Simplify the implementation of iterators over slices of ZSTs
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.
Diffstat (limited to 'tests/rustdoc-js-std/parser-errors.js')
0 files changed, 0 insertions, 0 deletions