From 2b3a37bd2e35458b4d66f13c4d3ad924455ac2bb Mon Sep 17 00:00:00 2001 From: Ulrik Sverdrup Date: Sun, 13 Nov 2016 00:11:16 +0100 Subject: [PATCH] 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. --- src/libcollections/vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 53b7ae0703bf..5477a1f6331b 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -1517,7 +1517,7 @@ impl FromIterator for Vec { vector } }; - vector.extend_desugared(iterator); + vector.extend(iterator); vector } }