diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-03-28 23:19:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-28 23:19:23 -0400 |
| commit | 8ae1d444cbd8515289818ee3e6c13bf30a7a227a (patch) | |
| tree | f53171c166928f23c360bc837bf930ae2ea860b9 /src/test/run-pass/thinlto | |
| parent | 378d230dd4f9df9532024b7d9257a7bdecf6be15 (diff) | |
| parent | dae66e000a974dd3bea7ae10b8827a5ece2b941e (diff) | |
| download | rust-8ae1d444cbd8515289818ee3e6c13bf30a7a227a.tar.gz rust-8ae1d444cbd8515289818ee3e6c13bf30a7a227a.zip | |
Rollup merge of #40731 - sfackler:vec-from-iter-spec, r=aturon
Specialize Vec::from_iter for vec::IntoIter It's fairly common to expose an API which takes an `IntoIterator` and immediately collects that into a vector. It's also common to buffer a bunch of items into a vector and then pass that into one of these APIs. If the iterator hasn't been advanced, we can make this `from_iter` simply reassemble the original `Vec` with no actual iteration or reallocation. r? @aturon
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
