]> git.lizzy.rs Git - rust.git/commit
Auto merge of #105046 - scottmcm:vecdeque-vs-vec, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Mon, 5 Dec 2022 08:45:03 +0000 (08:45 +0000)
committerbors <bors@rust-lang.org>
Mon, 5 Dec 2022 08:45:03 +0000 (08:45 +0000)
commit203c8765ea33c65d888febe0e8219c4bb11b0d89
treee26611529f67ed3193e9126d85cb651a3395b964
parente72ea1dc376e9c302c68faefafd967a8a7ef255a
parenta964a37211691ae9a28b76b6002ff55a707e9a8b
Auto merge of #105046 - scottmcm:vecdeque-vs-vec, r=Mark-Simulacrum

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.
library/alloc/src/collections/vec_deque/mod.rs