]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #59328 - koalatux:iter-nth-back, r=scottmcm
authorkennytm <kennytm@gmail.com>
Sun, 24 Mar 2019 07:32:52 +0000 (15:32 +0800)
committerkennytm <kennytm@gmail.com>
Sun, 24 Mar 2019 11:00:10 +0000 (19:00 +0800)
Implement specialized nth_back() for Box and Windows.

Hi there, this is my first pull request to rust :-)

I started implementing some specializations for DoubleEndedIterator::nth_back() and these are the first two. The problem has been discussed in #54054 and nth_back() is tracked in #56995.

I'm stuck with the next implementation so I though I do a PR for the ones I'm confident with to get some feedback.

1  2 
src/liballoc/boxed.rs
src/liballoc/lib.rs
src/libcore/slice/mod.rs
src/libcore/tests/slice.rs

Simple merge
index 440ce8ac5e842d47ad5ee631f4ecdfa56bbb6c40,da1afc2ff8aa3733df03ee287057954b2eb1afe7..90ff56814fbb153b97dd4452dd53aee29bccfc27
  #![feature(rustc_const_unstable)]
  #![feature(const_vec_new)]
  #![feature(slice_partition_dedup)]
 -#![feature(maybe_uninit)]
 +#![feature(maybe_uninit, maybe_uninit_slice, maybe_uninit_array)]
  #![feature(alloc_layout_extra)]
  #![feature(try_trait)]
+ #![feature(iter_nth_back)]
  
  // Allow testing this library
  
Simple merge
Simple merge