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.
4 lines
199 B
Text
4 lines
199 B
Text
|
|
thread 'main' ($TID) panicked at $DIR/const-eval-select-backtrace-std.rs:6:8:
|
|
start byte index 1 is out of bounds of ``
|
|
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|