summary refs log tree commit diff
path: root/src/rt/rust_obstack.cpp
diff options
context:
space:
mode:
authorMarkus Everling <markuseverling@gmail.com>2023-02-26 01:27:18 +0100
committerJosh Stone <jistone@redhat.com>2023-03-03 09:32:47 -0800
commita07453adef66a59b2e3a76d91fae2680cd5d8a5d (patch)
treed2d6b5f76fb8388bcf1d90c4904bd0a9919a960d /src/rt/rust_obstack.cpp
parenta5417512316b68f5d97150b429f56dc2334a528c (diff)
downloadrust-a07453adef66a59b2e3a76d91fae2680cd5d8a5d.tar.gz
rust-a07453adef66a59b2e3a76d91fae2680cd5d8a5d.zip
Fix `VecDeque::shrink_to` and add tests.
This adds both a test specific to #108453 as well as an exhaustive test
that goes through all possible combinations of head index, length and target capacity
for a deque with capacity 16.

(cherry picked from commit 9e22516877a2853c71456ef792fcbd9087fb905a)
Diffstat (limited to 'src/rt/rust_obstack.cpp')
0 files changed, 0 insertions, 0 deletions