mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 11:51:31 +03:00
262cd76333
Replace `self.end() == usize::MAX` and `self.end() + 1 > slice.len()` with `self.end() >= slice.len()`. Same reasoning as previous commit. Also consolidate the str panicking functions into function.