diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-04-08 14:31:11 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-08 14:31:11 +0200 |
| commit | 17c94b5f121ce05547ba5e47bfb1bfd6da317ee2 (patch) | |
| tree | d846b5b650afe287ef0b18ee59d28e2a36f8f293 /compiler/rustc_codegen_llvm/src | |
| parent | 98fbf86af9aa425a273d7e28f94a52cef61231da (diff) | |
| parent | 7a2678de7d3c0caa169542bd56a4fbf41b73a5b5 (diff) | |
| download | rust-17c94b5f121ce05547ba5e47bfb1bfd6da317ee2.tar.gz rust-17c94b5f121ce05547ba5e47bfb1bfd6da317ee2.zip | |
Rollup merge of #123089 - Philippe-Cholet:vecdeque_pop_assume_cap, r=Nilstrieb
Add invariant to VecDeque::pop_* that len < cap if pop successful Similar to #114370 for VecDeque instead of Vec. I initially come from https://github.com/rust-itertools/itertools/pull/899 where we noticed that `pop_front;push_back;` was slower than expected so `@scottmcm` suggested I file an issue which lead to https://internals.rust-lang.org/t/vecdeque-pop-front-push-back/20483 where **kornel** mentionned #114334 (fixed by #114370). This is my first time with codegen tests, I based the test on what was done for Vec.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
