diff options
| author | Josh Stone <jistone@redhat.com> | 2019-04-05 14:51:07 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2019-04-05 14:51:07 -0700 |
| commit | 0730a01c5ca3b0e8760d72a05c47d4199bd64728 (patch) | |
| tree | 5af6502b9735c82450876e518ccfce9fd977debf /src/test/ui/thinlto | |
| parent | acd8dd6a50d505057a7d7ad8d0d7a4c2bd274200 (diff) | |
| download | rust-0730a01c5ca3b0e8760d72a05c47d4199bd64728.tar.gz rust-0730a01c5ca3b0e8760d72a05c47d4199bd64728.zip | |
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/ui/thinlto')
0 files changed, 0 insertions, 0 deletions
