rust/library/core/tests
bors 5849a7eca9 Auto merge of #77594 - timvermeulen:chain_advance_by, r=scottmcm
Implement advance_by, advance_back_by for iter::Chain

Part of #77404.

This PR does two things:
- implement `Chain::advance[_back]_by` in terms of `advance[_back]_by` on `self.a` and `advance[_back]_by` on `self.b`
- change `Chain::nth[_back]` to use `advance[_back]_by` on `self.a` and `nth[_back]` on `self.b`

This ensures that `Chain::nth` can take advantage of an efficient `nth` implementation on the second iterator, in case it doesn't implement `advance_by`.

cc `@scottmcm` in case you want to review this
2020-10-06 10:17:48 +00:00
..
fmt
hash
num Rollup merge of #76745 - workingjubilee:move-wrapping-tests, r=matklad 2020-10-03 00:31:08 +02:00
alloc.rs
any.rs
array.rs Rollup merge of #76454 - poliorcetics:ui-to-unit-test-1, r=matklad 2020-09-28 18:39:39 +02:00
ascii.rs
atomic.rs
bool.rs
cell.rs Move format-ref-cell test 2020-09-21 21:50:27 +02:00
char.rs
clone.rs
cmp.rs
intrinsics.rs move test to intergrated test in library/core 2020-09-24 14:46:57 +00:00
iter.rs Test with non-fused iterators 2020-10-06 00:48:34 +02:00
lazy.rs
lib.rs Rollup merge of #76909 - timvermeulen:advance_by, r=Amanieu 2020-10-01 02:13:29 +02:00
manually_drop.rs
mem.rs
nonzero.rs
ops.rs
option.rs review: fix nits and move panic safety tests to the correct place 2020-09-25 23:10:24 +02:00
pattern.rs
pin.rs Make some methods of Pin<&mut T> unstable const 2020-09-18 19:23:50 +02:00
ptr.rs
result.rs Auto merge of #76136 - CDirkx:const-result, r=dtolnay 2020-09-20 13:07:11 +00:00
slice.rs review: fix nits and move panic safety tests to the correct place 2020-09-25 23:10:24 +02:00
str_lossy.rs
str.rs
time.rs
tuple.rs