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.
This commit is contained in:
Ulrik Sverdrup 2016-11-13 00:11:16 +01:00
parent 5058e58676
commit 2b3a37bd2e

View file

@ -1517,7 +1517,7 @@ impl<T> FromIterator<T> for Vec<T> {
vector
}
};
vector.extend_desugared(iterator);
vector.extend(iterator);
vector
}
}