rollup merge of #20656: japaric/at-clean

This commit is contained in:
Alex Crichton
2015-01-06 15:41:13 -08:00
5 changed files with 84 additions and 87 deletions

View File

@@ -937,7 +937,7 @@ impl<'a, T> ExactSizeIterator for IterMut<'a, T> {}
trait SplitIter: DoubleEndedIterator {
/// Mark the underlying iterator as complete, extracting the remaining
/// portion of the slice.
fn finish(&mut self) -> Option< <Self as Iterator>::Item>;
fn finish(&mut self) -> Option<Self::Item>;
}
/// An iterator over subslices separated by elements that match a predicate
@@ -1102,7 +1102,7 @@ struct GenericSplitN<I> {
invert: bool
}
impl<T, I: SplitIter + Iterator<Item=T>> Iterator for GenericSplitN<I> {
impl<T, I: SplitIter<Item=T>> Iterator for GenericSplitN<I> {
type Item = T;
#[inline]