Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions library/core/src/iter/sources/from_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ use crate::fmt;
/// ```
#[inline]
#[stable(feature = "iter_from_fn", since = "1.34.0")]
#[rustc_diagnostic_item = "iter_from_fn"]
pub fn from_fn<T, F>(f: F) -> FromFn<F>
where
F: FnMut() -> Option<T>,
Expand Down
1 change: 1 addition & 0 deletions library/core/src/iter/sources/repeat_with.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ use crate::ops::Try;
/// ```
#[inline]
#[stable(feature = "iterator_repeat_with", since = "1.28.0")]
#[rustc_diagnostic_item = "iterator_repeat_with"]
Comment thread
voodookiidoo marked this conversation as resolved.
Outdated
pub fn repeat_with<A, F: FnMut() -> A>(repeater: F) -> RepeatWith<F> {
RepeatWith { repeater }
}
Expand Down
1 change: 1 addition & 0 deletions library/core/src/iter/sources/successors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use crate::iter::FusedIterator;
/// assert_eq!(powers_of_10.collect::<Vec<_>>(), &[1, 10, 100, 1_000, 10_000]);
/// ```
#[stable(feature = "iter_successors", since = "1.34.0")]
#[rustc_diagnostic_item = "iter_successors"]
pub fn successors<T, F>(first: Option<T>, succ: F) -> Successors<T, F>
where
F: FnMut(&T) -> Option<T>,
Expand Down
Loading