]> git.lizzy.rs Git - rust.git/commitdiff
Stabilize iter_rfold in 1.27.0
authorJosh Stone <jistone@redhat.com>
Mon, 2 Apr 2018 23:33:09 +0000 (16:33 -0700)
committerJosh Stone <jistone@redhat.com>
Mon, 2 Apr 2018 23:33:09 +0000 (16:33 -0700)
src/liballoc/lib.rs
src/libcore/iter/traits.rs
src/libcore/tests/lib.rs

index e6a311041f5446f7d83d52b7799a820f5dd3f1e9..cbdb135c78c1c09069bb696017c3fbd3f71e9335 100644 (file)
 #![feature(fundamental)]
 #![feature(generic_param_attrs)]
 #![cfg_attr(stage0, feature(i128_type))]
-#![feature(iter_rfold)]
 #![feature(lang_items)]
 #![feature(needs_allocator)]
 #![feature(nonzero)]
index c3aebc4fb23ce37eb8c4aaf63c65a4297d798889..f84dc98912f6244a45f97662c53858086f323ffd 100644 (file)
@@ -491,7 +491,6 @@ fn try_rfold<B, F, R>(&mut self, init: B, mut f: F) -> R where
     /// Basic usage:
     ///
     /// ```
-    /// #![feature(iter_rfold)]
     /// let a = [1, 2, 3];
     ///
     /// // the sum of all of the elements of a
@@ -505,7 +504,6 @@ fn try_rfold<B, F, R>(&mut self, init: B, mut f: F) -> R where
     /// and continuing with each element from the back until the front:
     ///
     /// ```
-    /// #![feature(iter_rfold)]
     /// let numbers = [1, 2, 3, 4, 5];
     ///
     /// let zero = "0".to_string();
@@ -517,7 +515,7 @@ fn try_rfold<B, F, R>(&mut self, init: B, mut f: F) -> R where
     /// assert_eq!(result, "(1 + (2 + (3 + (4 + (5 + 0)))))");
     /// ```
     #[inline]
-    #[unstable(feature = "iter_rfold", issue = "44705")]
+    #[stable(feature = "iter_rfold", since = "1.27.0")]
     fn rfold<B, F>(mut self, accum: B, mut f: F) -> B where
         Self: Sized, F: FnMut(B, Self::Item) -> B,
     {
index 1a68f04532d204a91a920d5d07b928936d051b65..e04968a6359939f001d16b940b6fd554640b512a 100644 (file)
@@ -29,7 +29,6 @@
 #![feature(iterator_flatten)]
 #![cfg_attr(stage0, feature(conservative_impl_trait))]
 #![feature(iter_rfind)]
-#![feature(iter_rfold)]
 #![feature(iterator_repeat_with)]
 #![feature(nonzero)]
 #![feature(pattern)]