Skip to content

Commit

Permalink
Auto merge of #116047 - a-lafrance:I80836-codegen-test, r=Mark-Simula…
Browse files Browse the repository at this point in the history
…crum

Add codegen test to guard against VecDeque optimization regression

Very small PR that adds a codegen test to guard against regression for the `VecDeque` optimization addressed in #80836. Ensures that Rustc optimizes away the panic when unwrapping the result of `.get(0)` because of the `!is_empty()` condition.
  • Loading branch information
bors committed Sep 23, 2023
2 parents 0e05f44 + 4766f8c commit 6792927
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 6792927

Please sign in to comment.