diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-08-03 20:51:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-03 20:51:52 +0200 |
| commit | 53a56190afeda7d087b9cc78181fe4f2fe13b4c5 (patch) | |
| tree | 3327e068327d08f8c8c5b75c26e127cb239e118a /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 0afbe482f06c419734a6c1b668933db8427d0ef8 (diff) | |
| parent | 77ca30f1950a062e9eb1caeff790618488058057 (diff) | |
| download | rust-53a56190afeda7d087b9cc78181fe4f2fe13b4c5.tar.gz rust-53a56190afeda7d087b9cc78181fe4f2fe13b4c5.zip | |
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>.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
