You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Off by one error in str::index_mut (specifically) for RangeToInclusive (specifically) #50002
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).
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)
changed the title [-]Off by one error in str::get_mut (specifically) for RangeToInclusive (specifically)[/-][+]Off by one error in str::index_mut (specifically) for RangeToInclusive (specifically)[/+]on Apr 16, 2018
Activity
[-]Off by one error in str::get_mut (specifically) for RangeToInclusive (specifically)[/-][+]Off by one error in str::index_mut (specifically) for RangeToInclusive (specifically)[/+]alexcrichton commentedon Apr 21, 2018
Not technically a regression but tagging it as such to ensure that we don't forget about it.
Auto merge of #50039 - ExpHP:quick-50002, r=alexcrichton
ExpHP commentedon Apr 21, 2018
@alexcrichton my commit message accidentally closed this, which might defeat the purpose of the tag you added
(note: I myself can't reopen it because Github attributed the message to Bors)
alexcrichton commentedon Apr 21, 2018
Oh that's ok, the tags on the PR take over now for backporting and that's how we'll track this.
smaller PR just to fix rust-lang#50002
ExpHP commentedon May 10, 2018
(ahhhh, now I see. The tag is used in automation for a Github Project to track regressions. That's actually pretty cool!)
(...don't mind me, just talking to myself)
Rollup merge of rust-lang#50010 - ExpHP:slice-bounds, r=alexcrichton