Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #150076 - heathdutton:fix-linked-list-cursor-pop-front-index, r=Mark-Simulacrum
Fix `LinkedList::CursorMut::pop_front` to correctly update index When `pop_front` was called while the cursor pointed to the front element, `move_next` incremented the index but it was never decremented afterwards, causing the index to incorrectly report 1 instead of 0. Always decrement the index after popping from front using `saturating_sub` to handle edge cases safely. Fixes rust-lang/rust#147616
bors 4 months ago
parent da54a54 · parent 874a0a1 · commit d3872f1
0 files changed, 0 insertions, 0 deletions