# \`VecDeque\`: \`pop\_front+push\_back\`

**URL:** <https://internals.rust-lang.org/t/vecdeque-pop-front-push-back/20483>\
**Category:** Uncategorized\
**Created:** [March 16, 2024, 9:47am UTC](https://internals.rust-lang.org/t/vecdeque-pop-front-push-back/20483 "2024-03-16T09:47:45Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![Phil15](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/phil15/32/11938_2.png) [@Phil15](https://internals.rust-lang.org/u/Phil15)\
**Post date:** [March 28, 2024, 9:42am UTC](https://internals.rust-lang.org/t/vecdeque-pop-front-push-back/20483/21 "2024-03-28T09:42:45Z")

</div>

I _naively_ thought that my (first) codegen tests were tested in the 48 minutes long CI I had in my PR but no. It therefore failed the rollup of 8 PRs. _Anyone to help me fix them?_

Error log: [Rollup of 8 pull requests by matthiaskrgr · Pull Request #123143 · rust-lang/rust · GitHub](https://github.com/rust-lang/rust/pull/123143#issuecomment-2024087377)

My **bad** codegen tests: [Add invariant to VecDeque::pop\_\* that len \< cap if pop successful by Philippe-Cholet · Pull Request #123089 · rust-lang/rust · GitHub](https://github.com/rust-lang/rust/pull/123089/files#diff-3f7d3e18b9072de6775f2bc62cca402cdaf533b737f83300c3f70fe6cea278f5)

---

<div class="post-metadata">

**Author:** ![Phil15](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/phil15/32/11938_2.png) [@Phil15](https://internals.rust-lang.org/u/Phil15)\
**Post date:** [April 8, 2024, 4:31pm UTC](https://internals.rust-lang.org/t/vecdeque-pop-front-push-back/20483/22 "2024-04-08T16:31:29Z")

</div>

I finally fixed my PR. It has been merged and will be in rust 1.79.0.

Thank you all for this insightful discussion.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/system/32/14092_2.png) [@system](https://internals.rust-lang.org/u/system)\
**Post date:** [July 7, 2024, 4:32pm UTC](https://internals.rust-lang.org/t/vecdeque-pop-front-push-back/20483/23 "2024-07-07T16:32:13Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

[Previous page](https://internals.rust-lang.org/t/vecdeque-pop-front-push-back/20483.md?page=1)
