Stabilize feature(iterator_fold_self): Iterator::reduce
This commit is contained in:
parent
26af55f5c6
commit
24e0940169
3 changed files with 1 additions and 5 deletions
|
@ -14,7 +14,6 @@
|
||||||
#![feature(const_fn_transmute)]
|
#![feature(const_fn_transmute)]
|
||||||
#![feature(const_panic)]
|
#![feature(const_panic)]
|
||||||
#![feature(crate_visibility_modifier)]
|
#![feature(crate_visibility_modifier)]
|
||||||
#![feature(iterator_fold_self)]
|
|
||||||
#![feature(label_break_value)]
|
#![feature(label_break_value)]
|
||||||
#![feature(nll)]
|
#![feature(nll)]
|
||||||
#![feature(or_patterns)]
|
#![feature(or_patterns)]
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
#![feature(const_fn)] // For the unsizing cast on `&[]`
|
#![feature(const_fn)] // For the unsizing cast on `&[]`
|
||||||
#![feature(const_panic)]
|
#![feature(const_panic)]
|
||||||
#![feature(in_band_lifetimes)]
|
#![feature(in_band_lifetimes)]
|
||||||
#![feature(iterator_fold_self)]
|
|
||||||
#![feature(once_cell)]
|
#![feature(once_cell)]
|
||||||
#![feature(or_patterns)]
|
#![feature(or_patterns)]
|
||||||
#![recursion_limit = "256"]
|
#![recursion_limit = "256"]
|
||||||
|
|
|
@ -2143,8 +2143,6 @@ pub trait Iterator {
|
||||||
/// Find the maximum value:
|
/// Find the maximum value:
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// #![feature(iterator_fold_self)]
|
|
||||||
///
|
|
||||||
/// fn find_max<I>(iter: I) -> Option<I::Item>
|
/// fn find_max<I>(iter: I) -> Option<I::Item>
|
||||||
/// where I: Iterator,
|
/// where I: Iterator,
|
||||||
/// I::Item: Ord,
|
/// I::Item: Ord,
|
||||||
|
@ -2160,7 +2158,7 @@ pub trait Iterator {
|
||||||
/// assert_eq!(find_max(b.iter()), None);
|
/// assert_eq!(find_max(b.iter()), None);
|
||||||
/// ```
|
/// ```
|
||||||
#[inline]
|
#[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>
|
fn reduce<F>(mut self, f: F) -> Option<Self::Item>
|
||||||
where
|
where
|
||||||
Self: Sized,
|
Self: Sized,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue