about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-02-26 12:05:00 +0100
committerGitHub <noreply@github.com>2023-02-26 12:05:00 +0100
commitbe23b326dcf00c43aaa48670a073650b3fc33612 (patch)
treeae43aee27a23f20415c474bfdb516959b54dea28 /compiler/rustc_parse/src/errors.rs
parentc815e03447574916fc4e47c28803deadc97479b7 (diff)
parent4a4f43e4e9b994c729a0506d921fe9734673a20a (diff)
downloadrust-be23b326dcf00c43aaa48670a073650b3fc33612.tar.gz
rust-be23b326dcf00c43aaa48670a073650b3fc33612.zip
Rollup merge of #108475 - Sp00ph:fix_shrink_to, r=thomcc
Fix `VecDeque::shrink_to` and add tests.

Fixes #108453.

Also adds both a specific test with the code from #108453 and an exhaustive test that checks all possible head positions, lengths and target capacities for deques with capacity 16.

cc `@trinity-1686a` `@scottmcm`
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions