Rollup merge of #42987 - cuviper:iterator_for_each, r=Mark-Simulacrum

Track `iterator_for_each` in #42986

None
This commit is contained in:
Guillaume Gomez 2017-06-30 22:44:48 +02:00 committed by GitHub
commit bda06de5dc
2 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
# `iterator_for_each`
The tracking issue for this feature is: [#TBD]
The tracking issue for this feature is: [#42986]
[#TBD]: https://github.com/rust-lang/rust/issues/TBD
[#42986]: https://github.com/rust-lang/rust/issues/42986
------------------------

View File

@ -522,7 +522,7 @@ pub trait Iterator {
/// .for_each(|(i, x)| println!("{}:{}", i, x));
/// ```
#[inline]
#[unstable(feature = "iterator_for_each", issue = "0")]
#[unstable(feature = "iterator_for_each", issue = "42986")]
fn for_each<F>(self, mut f: F) where
Self: Sized, F: FnMut(Self::Item),
{