rust/tests
Jonathan Brouwer 6d625cc074
Rollup merge of #145024 - Kmeakin:km/optimize-slice-index/v3, r=Mark-Simulacrum
Optimize indexing slices and strs with inclusive ranges

Instead of separately checking for `end == usize::MAX` and `end + 1 > slice.len()`, we can check for `end >= slice.len()`. Also consolidate all the str indexing related panic functions into a single function which reports the correct error depending on the arguments, as the slice indexing code already does.

The downside of all this is that the panic message is slightly less specific when trying to index with `[..=usize::MAX]`: instead of saying "attempted to index str up to maximum usize" it just says "end byte index {end} out of bounds". But this is a rare enough case that I think it is acceptable
2026-02-14 22:11:52 +01:00
..
assembly-llvm Rollup merge of #142680 - beetrees:sparc64-float-struct-abi, r=tgross35 2026-02-12 00:41:05 -05:00
auxiliary Rollup merge of #150368 - minicore-ordering, r=workingjubilee 2026-01-11 09:56:38 +01:00
build-std/configurations Test that -Zbuild-std=core works on a variety of profiles 2026-01-14 20:39:12 -05:00
codegen-llvm Rollup merge of #145024 - Kmeakin:km/optimize-slice-index/v3, r=Mark-Simulacrum 2026-02-14 22:11:52 +01:00
codegen-units address review comments; fix CI 2026-01-01 19:17:11 -05:00
coverage coverage: Add a test case for a previously-unknown span mismatch 2026-02-03 22:53:38 +11:00
coverage-run-rustdoc
crashes Rollup merge of #152001 - reddevilmidzy:mgca-i, r=BoxyUwU 2026-02-14 18:55:35 +01:00
debuginfo Allow provisional mgca syntax of type const <IDENT> = <EXPR> to be reconized. 2026-02-09 07:59:24 -08:00
incremental Port rustc_clean to attribute parser 2026-02-04 20:58:02 +00:00
mir-opt Auto merge of #150681 - meithecatte:always-discriminate, r=JonathanBrouwer,Nadrieril 2026-02-14 12:53:09 +00:00
pretty Fix pretty print tests with #[prelude_import] 2026-02-12 17:43:58 +00:00
run-make Rollup merge of #152134 - hoodmane:emscripten-crt-static-allow-dylibs, r=petrochenkov 2026-02-09 18:39:39 +01:00
run-make-cargo Update cargo submodule 2026-01-30 19:15:24 -05:00
rustdoc-gui Remove the 4 failing tests from rustdoc-gui 2026-02-06 01:13:41 +01:00
rustdoc-html Rollup merge of #152394 - GuillaumeGomez:macro-call, r=lolbinarycat 2026-02-12 00:41:10 -05:00
rustdoc-js rustdoc: sort stable items first 2026-02-13 14:44:41 -06:00
rustdoc-js-std rustdoc: sort stable items first 2026-02-13 14:44:41 -06:00
rustdoc-json resolve: Mark items under ambigous imports as exported 2026-01-27 16:24:53 +03:00
rustdoc-ui Allow provisional mgca syntax of type const <IDENT> = <EXPR> to be reconized. 2026-02-09 07:59:24 -08:00
ui Rollup merge of #145024 - Kmeakin:km/optimize-slice-index/v3, r=Mark-Simulacrum 2026-02-14 22:11:52 +01:00
ui-fulldeps Stabilize assert_matches 2026-02-11 14:13:44 +01:00
COMPILER_TESTS.md