Commit 8604cb6
committed
Add invariant to VecDeque::pop_* that len < cap if pop successful
Similar to rust-lang#114370 for VecDeque instead of Vec. It now uses `core::hint::assert_unchecked`.1 parent e83fe3c commit 8604cb6
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1614 | 1614 | | |
1615 | 1615 | | |
1616 | 1616 | | |
1617 | | - | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
1618 | 1621 | | |
1619 | 1622 | | |
1620 | 1623 | | |
| |||
1638 | 1641 | | |
1639 | 1642 | | |
1640 | 1643 | | |
1641 | | - | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
1642 | 1648 | | |
1643 | 1649 | | |
1644 | 1650 | | |
| |||
0 commit comments