Skip to content

Commit

Permalink
Auto merge of rust-lang#105046 - scottmcm:vecdeque-vs-vec, r=Mark-Sim…
Browse files Browse the repository at this point in the history
…ulacrum

Send `VecDeque::from_iter` via `Vec::from_iter`

Since it's O(1) to convert between them now, might as well reuse the logic.

Mostly for the various specializations it does, but might also save some monomorphization work if, say, people collect slice iterators into both `Vec`s and `VecDeque`s.
  • Loading branch information
bors committed Dec 5, 2022
2 parents 4c5e78c + 7bd61b9 commit 80f0f8c
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 80f0f8c

Please sign in to comment.