mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
53a56190af
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>. |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |