about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/basic.js
diff options
context:
space:
mode:
authorChayim Refael Friedman <chayimfr@gmail.com>2024-11-28 23:34:47 +0200
committerChayim Refael Friedman <chayimfr@gmail.com>2024-11-28 23:34:47 +0200
commitfa87a3e88942e407a2214728bb466620f538d13d (patch)
tree281053032580490caede6c4b2dbe9a8ee6000992 /tests/rustdoc-js-std/basic.js
parent7e565cce6a03340edb4b9f56228cf5e480e24806 (diff)
downloadrust-fa87a3e88942e407a2214728bb466620f538d13d.tar.gz
rust-fa87a3e88942e407a2214728bb466620f538d13d.zip
Change `GetManyMutError` to match T-libs-api decision
That is, differentiate between out-of-bounds and overlapping indices, and remove the generic parameter `N`.

I also exported `GetManyMutError` from `alloc` (and `std`), which was apparently forgotten.

Changing the error to carry additional details means LLVM no longer generates separate short-circuiting branches for the checks, instead it generates one branch at the end. I therefore changed the  code to use early returns to make LLVM generate jumps. Benchmark results between the approaches are somewhat mixed, but I chose this approach because it is significantly faster with ranges and also faster with `unwrap()`.
Diffstat (limited to 'tests/rustdoc-js-std/basic.js')
0 files changed, 0 insertions, 0 deletions