Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions library/core/src/iter/adapters/peekable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ impl<I: Iterator> Peekable<I> {
///
/// Parse the leading decimal number from an iterator of characters.
/// ```
/// #![feature(peekable_next_if_map)]
/// let mut iter = "125 GOTO 10".chars().peekable();
/// let mut line_num = 0_u32;
/// while let Some(digit) = iter.next_if_map(|c| c.to_digit(10).ok_or(c)) {
Expand All @@ -347,7 +346,6 @@ impl<I: Iterator> Peekable<I> {
///
/// Matching custom types.
/// ```
/// #![feature(peekable_next_if_map)]
///
/// #[derive(Debug, PartialEq, Eq)]
/// enum Node {
Expand Down Expand Up @@ -406,7 +404,7 @@ impl<I: Iterator> Peekable<I> {
///# ],
///# )
/// ```
#[unstable(feature = "peekable_next_if_map", issue = "143702")]
#[stable(feature = "peekable_next_if_map", since = "CURRENT_RUSTC_VERSION")]
pub fn next_if_map<R>(&mut self, f: impl FnOnce(I::Item) -> Result<R, I::Item>) -> Option<R> {
let unpeek = if let Some(item) = self.next() {
match f(item) {
Expand Down
1 change: 0 additions & 1 deletion library/coretests/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@
#![feature(one_sided_range)]
#![feature(option_reduce)]
#![feature(pattern)]
#![feature(peekable_next_if_map)]
#![feature(pointer_is_aligned_to)]
#![feature(portable_simd)]
#![feature(ptr_metadata)]
Expand Down
Loading