Files
rust/src/libcollections
Corey Farwell 8ae1d444cb 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
2017-03-28 23:19:23 -04:00
..
2017-03-21 20:46:20 +01:00
2017-02-14 23:07:51 -05:00
2017-03-21 20:46:20 +01:00
2017-03-22 18:42:42 +01:00
2017-03-23 12:20:13 +01:00