core::iter::Iterator::flatten: tracking issue is #48213
This commit is contained in:
parent
0e394010e6
commit
3d74c74fa0
2 changed files with 6 additions and 6 deletions
|
|
@ -1075,7 +1075,7 @@ pub trait Iterator {
|
|||
/// assert_eq!(merged, "alphabetagamma");
|
||||
/// ```
|
||||
#[inline]
|
||||
#[unstable(feature = "iterator_flatten", issue = "0")]
|
||||
#[unstable(feature = "iterator_flatten", issue = "48213")]
|
||||
fn flatten(self) -> Flatten<Self>
|
||||
where Self: Sized, Self::Item: IntoIterator {
|
||||
Flatten { inner: flatten_compat(self) }
|
||||
|
|
|
|||
|
|
@ -2494,13 +2494,13 @@ impl<I, U, F> FusedIterator for FlatMap<I, U, F>
|
|||
/// [`flatten`]: trait.Iterator.html#method.flatten
|
||||
/// [`Iterator`]: trait.Iterator.html
|
||||
#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
|
||||
#[unstable(feature = "iterator_flatten", issue = "0")]
|
||||
#[unstable(feature = "iterator_flatten", issue = "48213")]
|
||||
pub struct Flatten<I: Iterator>
|
||||
where I::Item: IntoIterator {
|
||||
inner: FlattenCompat<I, <I::Item as IntoIterator>::IntoIter>,
|
||||
}
|
||||
|
||||
#[unstable(feature = "iterator_flatten", issue = "0")]
|
||||
#[unstable(feature = "iterator_flatten", issue = "48213")]
|
||||
impl<I, U> fmt::Debug for Flatten<I>
|
||||
where I: Iterator + fmt::Debug, U: Iterator + fmt::Debug,
|
||||
I::Item: IntoIterator<IntoIter = U, Item = U::Item>,
|
||||
|
|
@ -2510,7 +2510,7 @@ impl<I, U> fmt::Debug for Flatten<I>
|
|||
}
|
||||
}
|
||||
|
||||
#[unstable(feature = "iterator_flatten", issue = "0")]
|
||||
#[unstable(feature = "iterator_flatten", issue = "48213")]
|
||||
impl<I, U> Clone for Flatten<I>
|
||||
where I: Iterator + Clone, U: Iterator + Clone,
|
||||
I::Item: IntoIterator<IntoIter = U, Item = U::Item>,
|
||||
|
|
@ -2518,7 +2518,7 @@ impl<I, U> Clone for Flatten<I>
|
|||
fn clone(&self) -> Self { Flatten { inner: self.inner.clone() } }
|
||||
}
|
||||
|
||||
#[unstable(feature = "iterator_flatten", issue = "0")]
|
||||
#[unstable(feature = "iterator_flatten", issue = "48213")]
|
||||
impl<I, U> Iterator for Flatten<I>
|
||||
where I: Iterator, U: Iterator,
|
||||
I::Item: IntoIterator<IntoIter = U, Item = U::Item>
|
||||
|
|
@ -2546,7 +2546,7 @@ impl<I, U> Iterator for Flatten<I>
|
|||
}
|
||||
}
|
||||
|
||||
#[unstable(feature = "iterator_flatten", issue = "0")]
|
||||
#[unstable(feature = "iterator_flatten", issue = "48213")]
|
||||
impl<I, U> DoubleEndedIterator for Flatten<I>
|
||||
where I: DoubleEndedIterator, U: DoubleEndedIterator,
|
||||
I::Item: IntoIterator<IntoIter = U, Item = U::Item>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue