diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2021-05-18 14:08:46 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-18 14:08:46 +0200 |
| commit | a181806b8cbd21736b86ee6ee2f4797c0a4a58b4 (patch) | |
| tree | 770981685134cceff67e3e34a2fb646898263ef9 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | d151ed869999f92b8a192f898197e5ad3e47e438 (diff) | |
| parent | 963bd3b643bae735cc46f8637e744163576244ea (diff) | |
| download | rust-a181806b8cbd21736b86ee6ee2f4797c0a4a58b4.tar.gz rust-a181806b8cbd21736b86ee6ee2f4797c0a4a58b4.zip | |
Rollup merge of #85338 - lopopolo:core-iter-repeat-gh-81292, r=joshtriplett
Implement more Iterator methods on core::iter::Repeat `core::iter::Repeat` always returns the same element, which means we can do better than implementing most `Iterator` methods in terms of `Iterator::next`. Fixes #81292. #81292 raises the question of whether these changes violate the contract of `core::iter::Repeat`, but as far as I can tell `core::iter::repeat` doesn't make any guarantees around how it calls `Clone::clone`.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
