rust/library
Guillaume Gomez a181806b8c
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`.
2021-05-18 14:08:46 +02:00
..
alloc mark internal inplace_iteration traits as hidden 2021-05-16 19:36:21 +02:00
backtrace@221483ebaf
core Rollup merge of #85338 - lopopolo:core-iter-repeat-gh-81292, r=joshtriplett 2021-05-18 14:08:46 +02:00
panic_abort
panic_unwind
proc_macro Implement span quoting for proc-macros 2021-05-12 00:51:31 -04:00
profiler_builtins update cc crate 2021-05-12 00:55:03 +02:00
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Auto merge of #82973 - ijackson:exitstatuserror, r=yaahc 2021-05-18 08:01:32 +00:00
stdarch@c14e98417f update stdarch 2021-05-13 15:01:09 +02:00
term
test
unwind update cc crate 2021-05-12 00:55:03 +02:00