diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2018-11-18 23:24:58 +0100 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-11-19 22:06:39 +0800 |
| commit | f5dc12ebfcbd385d827ce0e03f2241b295308830 (patch) | |
| tree | fad689afa6fd0b9e0e1480038981380634b5be60 /src/test/incremental/thinlto | |
| parent | 2a68c0075a1cf769ebc6f28667cd29fd11b852c1 (diff) | |
| parent | cdb1a799f8793c4c858abc05b437fa2e569f51e6 (diff) | |
| download | rust-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
