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:
parent
5058e58676
commit
2b3a37bd2e
1 changed files with 1 additions and 1 deletions
|
@ -1517,7 +1517,7 @@ impl<T> FromIterator<T> for Vec<T> {
|
|||
vector
|
||||
}
|
||||
};
|
||||
vector.extend_desugared(iterator);
|
||||
vector.extend(iterator);
|
||||
vector
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue