Josh Stone
5365b3f7be
Avoid superfluous UB checks in IndexRange
...
`IndexRange::len` is justified as an overall invariant, and
`take_prefix` and `take_suffix` are justified by local branch
conditions. A few more UB-checked calls remain in cases that are only
supported locally by `debug_assert!`, which won't do anything in
distributed builds, so those UB checks may still be useful.
We generally expect core's `#![rustc_preserve_ub_checks]` to optimize
away in user's release builds, but the mere presence of that extra code
can sometimes inhibit optimization, as seen in #131563 .
2024-10-11 16:22:43 -07:00
..
2023-03-20 10:25:29 +00:00
2024-05-31 15:56:43 +10:00
2023-03-20 10:25:29 +00:00
2024-02-22 16:04:04 +00:00
2024-07-12 10:47:56 +01:00
2024-05-31 15:56:43 +10:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-06-09 13:25:12 +00:00
2024-05-31 15:56:43 +10:00
2024-02-23 18:04:01 -05:00
2024-05-31 15:56:43 +10:00
2024-05-31 15:56:43 +10:00
2024-05-31 15:56:43 +10:00
2024-05-31 15:56:43 +10:00
2024-05-31 15:56:43 +10:00
2024-05-31 15:56:43 +10:00
2024-05-31 15:56:43 +10:00
2024-07-14 13:48:29 +03:00
2024-02-22 16:04:04 +00:00
2024-08-11 19:40:44 +02:00
2024-02-23 18:04:01 -05:00
2024-05-31 15:56:43 +10:00
2024-05-31 15:56:43 +10:00
2024-05-31 15:56:43 +10:00
2024-05-31 15:56:43 +10:00
2024-02-22 16:04:04 +00:00
2024-06-09 13:25:12 +00:00
2024-02-22 16:04:04 +00:00
2024-05-31 15:56:43 +10:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-05-31 15:56:43 +10:00
2024-02-22 16:04:04 +00:00
2024-05-31 15:56:43 +10:00
2024-02-22 16:04:04 +00:00
2024-08-31 23:56:45 +02:00
2024-06-09 13:25:12 +00:00
2024-04-24 13:12:33 +01:00
2024-05-31 15:56:43 +10:00
2024-02-22 16:04:04 +00:00
2024-02-23 18:04:01 -05:00
2024-05-31 15:56:43 +10:00
2024-02-22 16:04:04 +00:00
2024-10-11 16:22:43 -07:00
2024-02-23 18:04:01 -05:00
2024-02-22 16:04:04 +00:00
2024-02-22 16:04:04 +00:00
2024-05-31 15:56:43 +10:00
2024-02-22 16:04:04 +00:00
2024-05-31 15:56:43 +10:00
2024-02-23 18:04:01 -05:00
2024-08-08 18:08:44 +08:00
2024-06-11 07:45:16 +00:00
2024-09-18 13:53:31 -07:00
2024-04-11 21:42:35 -04:00
2024-06-19 21:35:37 -07:00
2024-06-09 13:25:12 +00:00
2024-03-17 10:11:04 -07:00
2024-02-22 16:04:04 +00:00
2024-02-23 18:04:01 -05:00
2024-08-08 18:08:44 +08:00
2024-09-18 13:53:31 -07:00
2024-05-31 15:56:43 +10:00
2024-02-27 23:14:36 -05:00
2024-08-03 16:41:49 +00:00
2024-06-11 16:07:14 +02:00
2024-09-23 11:31:29 +02:00
2024-08-08 18:08:44 +08:00
2024-08-06 14:37:33 -07:00