about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-05-21 06:19:44 +0000
committerbors <bors@rust-lang.org>2018-05-21 06:19:44 +0000
commit98686ca2944db341b0933e341b1e9029a905e322 (patch)
tree5bd43305c4efe03c3d1528adad3c47a460626639 /src/rustllvm/RustWrapper.cpp
parentba1363ffe12ac1ac796a620aef2008e4ae6c0477 (diff)
parent50c4506329673d38b3170f048f546a5885dd8310 (diff)
downloadrust-98686ca2944db341b0933e341b1e9029a905e322.tar.gz
rust-98686ca2944db341b0933e341b1e9029a905e322.zip
Auto merge of #50739 - gnzlbg:vec_reserve, r=sfackler
Switch Vec from doubling size on growth to using RawVec's reserve

On growth, Vec does not require to exactly double its size for correctness,
like, for example, VecDeque does.

Using reserve instead better expresses this intent. It also allows to reuse
Excess capacity on growth and for better growth-policies to be provided by
RawVec.

r? @sfackler
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions