rust/library/core
Matthias Krüger 53a56190af
Rollup merge of #128530 - scottmcm:repeat-n-unchecked, r=joboet
Implement `UncheckedIterator` directly for `RepeatN`

This just pulls the code out of `next` into `next_unchecked`, rather than making the `Some` and `unwrap_unchecked`ing it.

And while I was touching it, I added a codegen test that `array::repeat` for something that's just `Clone`, not `Copy`, still ends up optimizing to the same thing as `[x; n]`: <https://rust.godbolt.org/z/YY3a5ajMW>.
2024-08-03 20:51:52 +02:00
..
benches Reformat use declarations. 2024-07-29 08:26:52 +10:00
src Rollup merge of #128530 - scottmcm:repeat-n-unchecked, r=joboet 2024-08-03 20:51:52 +02:00
tests Rewrite binary search implementation 2024-07-30 17:07:56 +01:00
Cargo.toml Cleanup bootstrap check-cfg 2024-06-27 11:30:03 +02:00