mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
d8ae975c02
Panic on overflow in `BorrowedCursor::advance` Passing `usize::MAX` to `advance` clearly isn't correct, but the current assertion fails to detect this when overflow checks are disabled. This isn't unsound, but should probably be fixed regardless.