granite-rust/library/core
bors ee9a9f84c5 Auto merge of #124793 - scottmcm:simplify-as-chunks, r=Nilstrieb
Implement `as_chunks` with `split_at_unchecked`

We were discussing various ways to do [this on Discord](https://discord.com/channels/273534239310479360/273541522815713281/1236946363120619521), and in the process I noticed that <https://rust.godbolt.org/z/1P16P37Go> is emitting a panic path inside `as_chunks`.  It optimizes out in release, but we could just not do that in the first place.

We're already doing unsafe code that depends on this value being calculated correctly, so might as well call `split_at_unchecked` instead of `split_at`.
2024-05-09 01:55:46 +00:00
..
benches Rollup merge of #115913 - FedericoStra:checked_ilog, r=the8472 2024-04-22 20:25:58 +02:00
src Auto merge of #124793 - scottmcm:simplify-as-chunks, r=Nilstrieb 2024-05-09 01:55:46 +00:00
tests Step bootstrap cfgs 2024-05-01 22:19:11 -04:00
Cargo.toml Import the 2021 prelude in the core crate 2024-03-25 13:12:06 -07:00