about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorgnzlbg <gonzalobg88@gmail.com>2018-05-14 13:58:28 +0200
committergnzlbg <gonzalobg88@gmail.com>2018-05-14 13:58:28 +0200
commit50c4506329673d38b3170f048f546a5885dd8310 (patch)
tree7c62848363047e2e1cac7cb78e183cab79297e02 /src/test/incremental/thinlto
parent8f39dbae8cdc4418d3f79c719bd91d8b4f09c86b (diff)
downloadrust-50c4506329673d38b3170f048f546a5885dd8310.tar.gz
rust-50c4506329673d38b3170f048f546a5885dd8310.zip
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.
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions