Closed
Description
https://rust.godbolt.org/z/oe4q69
For some reason, the knowledge that a VecDeque
is empty, is not preserved when calling get(0)
(or even front
) and the compiler generates panics which are unreachable.
Metadata
Metadata
Assignees
Labels
Area: Code generationCall for participation: Help is requested to fix this issue.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.Issue: Problems and improvements with respect to performance of generated code.Relevant to the library team, which will review and decide on the PR/issue.