File tree Expand file tree Collapse file tree 3 files changed +1
-6
lines changed Expand file tree Collapse file tree 3 files changed +1
-6
lines changed Original file line number Diff line number Diff line change 112112#![ feature( maybe_uninit_extra, maybe_uninit_slice, maybe_uninit_array) ]
113113#![ feature( alloc_layout_extra) ]
114114#![ feature( try_trait) ]
115- #![ feature( iter_nth_back) ]
116115
117116// Allow testing this library
118117
Original file line number Diff line number Diff line change @@ -88,15 +88,13 @@ pub trait DoubleEndedIterator: Iterator {
8888 /// Basic usage:
8989 ///
9090 /// ```
91- /// #![feature(iter_nth_back)]
9291 /// let a = [1, 2, 3];
9392 /// assert_eq!(a.iter().nth_back(2), Some(&1));
9493 /// ```
9594 ///
9695 /// Calling `nth_back()` multiple times doesn't rewind the iterator:
9796 ///
9897 /// ```
99- /// #![feature(iter_nth_back)]
10098 /// let a = [1, 2, 3];
10199 ///
102100 /// let mut iter = a.iter();
@@ -108,12 +106,11 @@ pub trait DoubleEndedIterator: Iterator {
108106 /// Returning `None` if there are less than `n + 1` elements:
109107 ///
110108 /// ```
111- /// #![feature(iter_nth_back)]
112109 /// let a = [1, 2, 3];
113110 /// assert_eq!(a.iter().nth_back(10), None);
114111 /// ```
115112 #[ inline]
116- #[ unstable ( feature = "iter_nth_back" , issue = "56995 " ) ]
113+ #[ stable ( feature = "iter_nth_back" , since = "1.37.0 " ) ]
117114 fn nth_back ( & mut self , mut n : usize ) -> Option < Self :: Item > {
118115 for x in self . rev ( ) {
119116 if n == 0 { return Some ( x) }
Original file line number Diff line number Diff line change 1010#![ feature( fmt_internals) ]
1111#![ feature( hashmap_internals) ]
1212#![ feature( is_sorted) ]
13- #![ feature( iter_nth_back) ]
1413#![ feature( iter_once_with) ]
1514#![ feature( pattern) ]
1615#![ feature( range_is_empty) ]
You can’t perform that action at this time.
0 commit comments