mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
Stabilize feature(iterator_fold_self): Iterator::reduce
This commit is contained in:
parent
26af55f5c6
commit
24e0940169
@ -14,7 +14,6 @@
|
||||
#![feature(const_fn_transmute)]
|
||||
#![feature(const_panic)]
|
||||
#![feature(crate_visibility_modifier)]
|
||||
#![feature(iterator_fold_self)]
|
||||
#![feature(label_break_value)]
|
||||
#![feature(nll)]
|
||||
#![feature(or_patterns)]
|
||||
|
@ -6,7 +6,6 @@
|
||||
#![feature(const_fn)] // For the unsizing cast on `&[]`
|
||||
#![feature(const_panic)]
|
||||
#![feature(in_band_lifetimes)]
|
||||
#![feature(iterator_fold_self)]
|
||||
#![feature(once_cell)]
|
||||
#![feature(or_patterns)]
|
||||
#![recursion_limit = "256"]
|
||||
|
@ -2143,8 +2143,6 @@ pub trait Iterator {
|
||||
/// Find the maximum value:
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(iterator_fold_self)]
|
||||
///
|
||||
/// fn find_max<I>(iter: I) -> Option<I::Item>
|
||||
/// where I: Iterator,
|
||||
/// I::Item: Ord,
|
||||
@ -2160,7 +2158,7 @@ pub trait Iterator {
|
||||
/// assert_eq!(find_max(b.iter()), None);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[unstable(feature = "iterator_fold_self", issue = "68125")]
|
||||
#[stable(feature = "iterator_fold_self", since = "1.51.0")]
|
||||
fn reduce<F>(mut self, f: F) -> Option<Self::Item>
|
||||
where
|
||||
Self: Sized,
|
||||
|
Loading…
Reference in New Issue
Block a user