diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-04-06 03:39:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-06 03:39:09 +0200 |
| commit | b4527492b1630c18deb7206ec703d71a372da664 (patch) | |
| tree | 534d0958fe063b5ed0c5cd3e700f380100066775 /compiler/rustc_interface/src | |
| parent | acdba55b5371f1f64912d42c98edb5149d5e67dc (diff) | |
| parent | 83f659b4bb2212037ec62028b1979ec31d956fdd (diff) | |
| download | rust-b4527492b1630c18deb7206ec703d71a372da664.tar.gz rust-b4527492b1630c18deb7206ec703d71a372da664.zip | |
Rollup merge of #95699 - SparkyPotato:master, r=dtolnay
fix: Vec leak when capacity is 0 When `RawVec::with_capacity_in` is called with capacity 0, an allocation of size 0 is allocated. However, `<RawVec as Drop>::drop` doesn't deallocate, since it only checks if capacity was 0. Fixed by not allocating when capacity is 0.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions
