rust/src/libcollections
Corey Farwell 78d5d37235 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)
2017-06-13 17:14:59 -04:00
..
benches Add an in-place rotate method for slices to libcore 2017-05-21 01:55:43 -07:00
btree fallout from NonZero/Unique/Shared changes 2017-05-04 23:54:54 -04:00
tests Rollup merge of #42428 - scottmcm:str-get-overflow, r=sfackler 2017-06-13 17:14:59 -04:00
Cargo.toml Move libXtest into libX/tests 2017-04-03 20:49:39 +02:00
binary_heap.rs Rollup merge of #42260 - stjepang:document-cmp-traits-agreement, r=alexcrichton 2017-05-27 20:54:04 -06:00
borrow.rs Improve doc example for `Cow::to_mut`. 2017-06-03 14:54:17 -04:00
fmt.rs Rollup merge of #40241 - Sawyer47:fix-39997, r=alexcrichton 2017-03-19 20:51:06 -04:00
lib.rs Auto merge of #41670 - scottmcm:slice-rotate, r=alexcrichton 2017-06-02 07:51:20 +00:00
linked_list.rs fallout from NonZero/Unique/Shared changes 2017-05-04 23:54:54 -04:00
macros.rs Panic on errors in `format!` or `<T: Display>::to_string` 2017-03-01 23:47:59 +01:00
range.rs Make RangeInclusive just a two-field struct 2017-05-21 01:48:03 -07:00
slice.rs Rollup merge of #42370 - mbrubeck:docs, r=frewsxcv 2017-06-02 09:10:48 -06:00
str.rs Add missing term 'disjoint' from matches, rmatches 2017-06-11 06:17:12 +10:00
string.rs Correct some stability versions 2017-05-20 08:38:39 +01:00
vec.rs Vec<T> is pronounced 'vec' 2017-06-02 10:59:19 -07:00
vec_deque.rs fallout from NonZero/Unique/Shared changes 2017-05-04 23:54:54 -04:00