diff options
| author | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2016-11-13 00:11:16 +0100 |
|---|---|---|
| committer | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2016-11-13 00:13:09 +0100 |
| commit | 2b3a37bd2e35458b4d66f13c4d3ad924455ac2bb (patch) | |
| tree | f3dcfa3804a5945203310c2e6b37e1c3b6d06a77 | |
| parent | 5058e58676bd6c3af63fc4e35a327c07fce2a276 (diff) | |
Restore Vec::from_iter() specialization
Since I said "no intentional functional change" in the previous commit, I guess it was inevitable there were unintentional changes. Not functional, but optimization-wise. This restores the extend specialization's use in Vec::from_iter.
| -rw-r--r-- | src/libcollections/vec.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 53b7ae0703b..5477a1f6331 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -1517,7 +1517,7 @@ impl<T> FromIterator<T> for Vec<T> { vector } }; - vector.extend_desugared(iterator); + vector.extend(iterator); vector } } |
