Closed
Description
Caught while fleshing out a much beefier test suite for SliceIndex, which I plan to submit as a PR. (this Issue is here just in case that PR never happens).
Lines 2107 to 2115 in 1ef1563
The unicode character boundary check here should be looking at self.end + 1
. Better yet, the method could just delegate to RangeTo
instead. (note: it can't delegate to get_mut
here without NLL, which seems to be a leading factor as to how this function ended up this way)