about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-03 20:51:52 +0200
committerGitHub <noreply@github.com>2024-08-03 20:51:52 +0200
commit53a56190afeda7d087b9cc78181fe4f2fe13b4c5 (patch)
tree3327e068327d08f8c8c5b75c26e127cb239e118a /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent0afbe482f06c419734a6c1b668933db8427d0ef8 (diff)
parent77ca30f1950a062e9eb1caeff790618488058057 (diff)
downloadrust-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