about summary refs log tree commit diff
path: root/compiler/rustc_mir_dataflow
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2025-03-12 00:30:16 +0000
committerbors <bors@rust-lang.org>2025-03-12 00:30:16 +0000
commitd2b52c5c48ea024fc277feddcc92a60cc92be13c (patch)
tree5fdf99e53151706e8d2776ca0ced6645f12e944d /compiler/rustc_mir_dataflow
parentc6251023208f7e9789602376909af8aaf09483b7 (diff)
parentda0fbc19a5b2710d03c9f2d9ccd6bc572c2b2ffa (diff)
downloadrust-d2b52c5c48ea024fc277feddcc92a60cc92be13c.tar.gz
rust-d2b52c5c48ea024fc277feddcc92a60cc92be13c.zip
Auto merge of #137795 - Jarcho:idx_opt, r=davidtwco
Allow bounds checks when enumerating `IndexSlice` to be elided

Without this hint, each loop iteration has to separately bounds check the index. See https://godbolt.org/z/zrfPY4Ten for an example.

This is technically a behaviour change, but only in cases where the compiler is going to crash anyways.
Diffstat (limited to 'compiler/rustc_mir_dataflow')
0 files changed, 0 insertions, 0 deletions