Skip to content

Commit 24e0940

Browse files
committed
Stabilize feature(iterator_fold_self): Iterator::reduce
1 parent 26af55f commit 24e0940

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

compiler/rustc_ast/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#![feature(const_fn_transmute)]
1515
#![feature(const_panic)]
1616
#![feature(crate_visibility_modifier)]
17-
#![feature(iterator_fold_self)]
1817
#![feature(label_break_value)]
1918
#![feature(nll)]
2019
#![feature(or_patterns)]

compiler/rustc_hir/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#![feature(const_fn)] // For the unsizing cast on `&[]`
77
#![feature(const_panic)]
88
#![feature(in_band_lifetimes)]
9-
#![feature(iterator_fold_self)]
109
#![feature(once_cell)]
1110
#![feature(or_patterns)]
1211
#![recursion_limit = "256"]

library/core/src/iter/traits/iterator.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2143,8 +2143,6 @@ pub trait Iterator {
21432143
/// Find the maximum value:
21442144
///
21452145
/// ```
2146-
/// #![feature(iterator_fold_self)]
2147-
///
21482146
/// fn find_max<I>(iter: I) -> Option<I::Item>
21492147
/// where I: Iterator,
21502148
/// I::Item: Ord,
@@ -2160,7 +2158,7 @@ pub trait Iterator {
21602158
/// assert_eq!(find_max(b.iter()), None);
21612159
/// ```
21622160
#[inline]
2163-
#[unstable(feature = "iterator_fold_self", issue = "68125")]
2161+
#[stable(feature = "iterator_fold_self", since = "1.51.0")]
21642162
fn reduce<F>(mut self, f: F) -> Option<Self::Item>
21652163
where
21662164
Self: Sized,

0 commit comments

Comments
 (0)