about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorPietro Albini <pietro@pietroalbini.org>2018-11-18 23:24:58 +0100
committerkennytm <kennytm@gmail.com>2018-11-19 22:06:39 +0800
commitf5dc12ebfcbd385d827ce0e03f2241b295308830 (patch)
treefad689afa6fd0b9e0e1480038981380634b5be60 /src/test/incremental/thinlto
parent2a68c0075a1cf769ebc6f28667cd29fd11b852c1 (diff)
parentcdb1a799f8793c4c858abc05b437fa2e569f51e6 (diff)
downloadrust-f5dc12ebfcbd385d827ce0e03f2241b295308830.tar.gz
rust-f5dc12ebfcbd385d827ce0e03f2241b295308830.zip
Rollup merge of #56016 - scottmcm:vecdeque-resize-with, r=joshtriplett
Add VecDeque::resize_with

This already exists on `Vec`; I'm just adding it to `VecDeque`.

I wanted to resize a `VecDeque<Vec<T>>` when I didn't know `T: Clone`, so I couldn't use `.resize(n, Vec::new())`.  With this I could do `.resize_with(n, Vec::new)` instead, which doesn't need `T: Clone`.

Tracking issue: https://github.com/rust-lang/rust/issues/41758
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions