about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-04-06 22:52:46 +0200
committerGitHub <noreply@github.com>2019-04-06 22:52:46 +0200
commit76d818cf73cd49f09f0dede8d06214d8fda833b4 (patch)
treee61696cb41473e3f578ebb8bb850d77c196d1662 /src/test/incremental/thinlto
parented45788e532449e27411e9ccebecc36562c4bbcf (diff)
parent0730a01c5ca3b0e8760d72a05c47d4199bd64728 (diff)
downloadrust-76d818cf73cd49f09f0dede8d06214d8fda833b4.tar.gz
rust-76d818cf73cd49f09f0dede8d06214d8fda833b4.zip
Rollup merge of #59740 - cuviper:folded-extend, r=scottmcm
Use for_each to extend collections

This updates the `Extend` implementations to use `for_each` for many
collections: `BinaryHeap`, `BTreeMap`, `BTreeSet`, `LinkedList`, `Path`,
`TokenStream`, `VecDeque`, and `Wtf8Buf`.

Folding with `for_each` enables better performance than a `for`-loop for
some iterators, especially if they can just forward to internal
iterators, like `Chain` and `FlatMap` do.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions