bors 160c2ebeca Auto merge of #108763 - scottmcm:indexing-nuw-lengths, r=cuviper
Use `nuw` when calculating slice lengths from `Range`s

An `assume` would definitely not be worth it, but since the flag is almost free we might as well tell LLVM this, especially on `_unchecked` calls where there's no obvious way for it to deduce it.

(Today neither safe nor unsafe indexing gets it: <https://rust.godbolt.org/z/G1jYT548s>)
2023-03-07 13:17:59 +00:00
..
2023-02-26 09:15:54 +00:00
2023-01-29 15:20:03 +01:00
2022-12-20 15:01:37 +00:00
2023-01-06 13:20:58 +01:00
2023-01-30 13:09:09 -05:00
2023-02-26 13:50:10 +01:00
2023-03-03 03:03:29 +01:00
2023-02-13 14:17:45 +08:00
2023-03-03 03:03:29 +01:00
2022-12-12 16:22:01 -07:00
2023-03-03 03:03:29 +01:00
2023-02-15 16:22:08 +00:00
2023-02-14 11:53:22 +01:00
2023-03-01 00:05:31 +01:00
2023-01-30 13:09:09 -05:00
2023-01-25 09:44:29 -05:00