diff options
| author | Corey Farwell <coreyf@rwell.org> | 2017-06-13 17:14:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-13 17:14:59 -0400 |
| commit | 78d5d3723567e57e82ba65d73d2bc8bbe7f5c017 (patch) | |
| tree | 4143f38d1c339001b14a967c79c1aea3b3f90178 /src/test/run-pass/thinlto | |
| parent | 02179bd2515fcdc5cdfeecd84b04097f0c80daf2 (diff) | |
| parent | 808a08a363591abf754fafd93ec3f44c686486ec (diff) | |
| download | rust-78d5d3723567e57e82ba65d73d2bc8bbe7f5c017.tar.gz rust-78d5d3723567e57e82ba65d73d2bc8bbe7f5c017.zip | |
Rollup merge of #42428 - scottmcm:str-get-overflow, r=sfackler
Add overflow checking for `str::get` with inclusive ranges Fixes https://github.com/rust-lang/rust/issues/42401 Two commits here: 1. The first makes `str::index` just call `SliceIndex<str>::index`. It's intended to have no behavior change, except where the two methods were inconsistent. 2. The second actually adds the overflow checking to `get(_mut)` (and tests for it)
Diffstat (limited to 'src/test/run-pass/thinlto')
0 files changed, 0 insertions, 0 deletions
