rust/src/libcore/tests
Mazdak Farrokhzad 23b9b8320b
Rollup merge of #60555 - timvermeulen:rchunks_nth_back, r=scottmcm
Implement nth_back for RChunks(Exact)(Mut)

Part of #54054.

These implementations may not be optimal because of the use of `self.len()`, but it's quite cheap and simplifies the code a lot.

There's quite some duplication going on here, I wouldn't mind cleaning this up later. A good next step would probably be to add private `split_off_up_to`/`split_off_from` helper methods for slices since their behavior is commonly useful throughout the `Chunks` types.

r? @scottmcm
2019-05-29 08:15:51 +02:00
..
fmt Deny rust_2018_idioms in libcore tests 2019-04-20 18:44:29 +02:00
hash review or fix remaining miri failures in libcore 2019-02-13 18:21:13 +01:00
num Auto merge of #60192 - t-rapp:tr-saturating-funcs, r=alexcrichton 2019-04-25 17:26:20 +00:00
alloc.rs Add const_unchecked_layout test to libcore/tests 2019-05-14 09:41:50 +02:00
any.rs Remove licenses 2018-12-25 21:08:33 -07:00
array.rs Remove licenses 2018-12-25 21:08:33 -07:00
ascii.rs Remove licenses 2018-12-25 21:08:33 -07:00
atomic.rs Remove licenses 2018-12-25 21:08:33 -07:00
cell.rs Deny rust_2018_idioms in libcore tests 2019-04-20 18:44:29 +02:00
char.rs Remove copy paste error in char tests 2019-02-27 14:44:20 +01:00
clone.rs Remove licenses 2018-12-25 21:08:33 -07:00
cmp.rs Remove licenses 2018-12-25 21:08:33 -07:00
intrinsics.rs Remove licenses 2018-12-25 21:08:33 -07:00
iter.rs Rollup merge of #58975 - jtdowney:iter_arith_traits_option, r=dtolnay 2019-05-29 08:15:48 +02:00
lib.rs Add const_unchecked_layout test to libcore/tests 2019-05-14 09:41:50 +02:00
manually_drop.rs Remove licenses 2018-12-25 21:08:33 -07:00
mem.rs Remove licenses 2018-12-25 21:08:33 -07:00
nonzero.rs fixed tests again 2019-02-28 21:00:41 +01:00
ops.rs Improved test output for libcore/ops 2019-03-15 16:38:23 +05:30
option.rs we can now skip should_panic tests with the libtest harness 2019-03-10 17:47:42 +01:00
pattern.rs Remove licenses 2018-12-25 21:08:33 -07:00
ptr.rs Remove UB in test_ptr_subtraction test 2019-02-17 13:04:48 +01:00
result.rs we can now skip should_panic tests with the libtest harness 2019-03-10 17:47:42 +01:00
slice.rs Implement nth_back for RChunks(Exact)(Mut) 2019-05-05 11:21:30 +02:00
str.rs Remove licenses 2018-12-25 21:08:33 -07:00
str_lossy.rs Remove licenses 2018-12-25 21:08:33 -07:00
time.rs we can now skip should_panic tests with the libtest harness 2019-03-10 17:47:42 +01:00
tuple.rs Refactor tuple comparison tests 2019-03-25 13:00:57 -04:00