rust/library/core
Chayim Refael Friedman fa87a3e889 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()`.
2024-11-28 23:34:47 +02:00
..
benches Auto merge of #122770 - iximeow:ixi/int-formatting-optimization, r=workingjubilee 2024-11-14 04:17:20 +00:00
src Change GetManyMutError to match T-libs-api decision 2024-11-28 23:34:47 +02:00
tests Rollup merge of #133282 - tgross35:maybe-uninit-debug, r=Amanieu 2024-11-26 12:03:42 -05:00
Cargo.toml Port std library to RTEMS 2024-09-03 09:19:29 +02:00