about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-18 14:08:46 +0200
committerGitHub <noreply@github.com>2021-05-18 14:08:46 +0200
commita181806b8cbd21736b86ee6ee2f4797c0a4a58b4 (patch)
tree770981685134cceff67e3e34a2fb646898263ef9 /compiler/rustc_llvm/llvm-wrapper
parentd151ed869999f92b8a192f898197e5ad3e47e438 (diff)
parent963bd3b643bae735cc46f8637e744163576244ea (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions