rust/tests
bors 4e431fad67 Auto merge of #123561 - saethlin:str-unchecked-sub-index, r=scottmcm
Use unchecked_sub in str indexing

https://github.com/rust-lang/rust/pull/108763 applied this logic to indexing for slices, but of course `str` has its own separate impl.

Found this by skimming over the codegen for https://github.com/oxidecomputer/hubris/; their dist builds enable overflow checks so the lack of `unchecked_sub` was producing an impossible-to-hit overflow check and also inhibiting some inlining.

r? scottmcm
2024-04-07 12:49:15 +00:00
..
assembly Rollup merge of #121419 - agg23:xrOS-pr, r=davidtwco 2024-04-05 22:33:25 +02:00
auxiliary
codegen Auto merge of #123561 - saethlin:str-unchecked-sub-index, r=scottmcm 2024-04-07 12:49:15 +00:00
codegen-units
coverage
coverage-run-rustdoc
debuginfo
incremental Add missing -Zquery-dep-graph to the spike-neg incr comp tests 2024-04-06 13:36:16 +00:00
mir-opt Rollup merge of #123324 - Nadrieril:false-edges2, r=matthewjasper 2024-04-04 14:51:16 +02:00
pretty
run-make Auto merge of #123221 - pacak:cache_emit, r=fmease,jieyouxu 2024-04-07 10:46:50 +00:00
run-make-fulldeps
run-pass-valgrind
rustdoc Add f16 and f128 to rustdoc's PrimitiveType 2024-04-06 23:47:40 -04:00
rustdoc-gui Move check-container-color's code into check-search-color function 2024-04-06 15:52:00 +02:00
rustdoc-js
rustdoc-js-std
rustdoc-json
rustdoc-ui
ui Rollup merge of #123579 - matthiaskrgr:I_Love_Tests, r=jieyouxu 2024-04-07 09:17:15 +02:00
ui-fulldeps
COMPILER_TESTS.md