diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-08-16 08:26:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-16 08:26:39 +0200 |
| commit | 7dbd98fa9a8b7f1eb92e0d4df4f43b0bb85274a3 (patch) | |
| tree | 49dbc4fb1dace2e7ed8508a42237d7c5d7857015 | |
| parent | d9a429a1eb42ba56e1fa770c90305011efcac4d6 (diff) | |
| parent | f54503c908413ef54ac9dc8ccf47915fa07a3286 (diff) | |
| download | rust-7dbd98fa9a8b7f1eb92e0d4df4f43b0bb85274a3.tar.gz rust-7dbd98fa9a8b7f1eb92e0d4df4f43b0bb85274a3.zip | |
Rollup merge of #63584 - Centril:cleanup-core-with-more-atb, r=alexreg
libcore: more cleanups using `#![feature(associated_type_bounds)]` Turns out this was indeed a bootstrapping issue from a test with `./x.py check` locally after https://github.com/rust-lang/rust/pull/63534 merged. Closes https://github.com/rust-lang/rust/issues/63393 r? @alexreg cc @iluuu1994 cc https://github.com/rust-lang/rust/issues/52662
| -rw-r--r-- | src/libcore/iter/adapters/flatten.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libcore/iter/adapters/flatten.rs b/src/libcore/iter/adapters/flatten.rs index e3c85656116..a45173f614d 100644 --- a/src/libcore/iter/adapters/flatten.rs +++ b/src/libcore/iter/adapters/flatten.rs @@ -72,8 +72,7 @@ impl<I: Iterator, U: IntoIterator, F> Iterator for FlatMap<I, U, F> impl<I: DoubleEndedIterator, U, F> DoubleEndedIterator for FlatMap<I, U, F> where F: FnMut(I::Item) -> U, - U: IntoIterator, - U::IntoIter: DoubleEndedIterator, + U: IntoIterator<IntoIter: DoubleEndedIterator>, { #[inline] fn next_back(&mut self) -> Option<U::Item> { self.inner.next_back() } @@ -107,10 +106,7 @@ impl<I, U, F> FusedIterator for FlatMap<I, U, F> /// [`Iterator`]: trait.Iterator.html #[must_use = "iterators are lazy and do nothing unless consumed"] #[stable(feature = "iterator_flatten", since = "1.29.0")] -pub struct Flatten<I: Iterator> -where - I::Item: IntoIterator, -{ +pub struct Flatten<I: Iterator<Item: IntoIterator>> { inner: FlattenCompat<I, <I::Item as IntoIterator>::IntoIter>, } |
