Skip to content

Commit

Permalink
Rollup merge of rust-lang#49049 - Centril:fix/flatten-fusediterator, …
Browse files Browse the repository at this point in the history
…r=bluss

Unstabilize FusedIterator for Flatten since Flatten is unstable

PR rust-lang#47463 made `impl<I, U> FusedIterator for Flatten<I>` stable but shouldn't have since `Flatten` is still unstable. This PR makes the impl unstable again.
  • Loading branch information
kennytm committed Mar 15, 2018
2 parents a199fb2 + 6fbdaf4 commit fb49ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcore/iter/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2605,7 +2605,7 @@ impl<I, U> DoubleEndedIterator for Flatten<I>
}
}

#[stable(feature = "fused", since = "1.26.0")]
#[unstable(feature = "iterator_flatten", issue = "48213")]
impl<I, U> FusedIterator for Flatten<I>
where I: FusedIterator, U: Iterator,
I::Item: IntoIterator<IntoIter = U, Item = U::Item> {}
Expand Down

0 comments on commit fb49ae0

Please sign in to comment.