rust/library/alloc
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 move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
src Change GetManyMutError to match T-libs-api decision 2024-11-28 23:34:47 +02:00
tests Auto merge of #132231 - lukas-code:rc-plug-leaks, r=tgross35 2024-10-29 16:26:00 +00:00
Cargo.toml Update compiler_builtins to 0.1.138 and pin it 2024-11-03 17:43:16 -06:00