about summary refs log tree commit diff
path: root/src/test/run-pass/thinlto
diff options
context:
space:
mode:
authorSteven Fackler <sfackler@gmail.com>2017-03-17 22:36:21 -0700
committerSteven Fackler <sfackler@palantir.com>2017-03-22 08:55:17 +0000
commitdae66e000a974dd3bea7ae10b8827a5ece2b941e (patch)
treea75de72f9ed0fda9a5dd60f3913d2c6164adbc46 /src/test/run-pass/thinlto
parent8c4f2c64c6759a82f143e23964a46a65c67509c9 (diff)
downloadrust-dae66e000a974dd3bea7ae10b8827a5ece2b941e.tar.gz
rust-dae66e000a974dd3bea7ae10b8827a5ece2b941e.zip
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.
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions