|
1 | 1 | use crate::iter::adapters::SourceIter;
|
2 | 2 | use crate::iter::{
|
3 |
| - Cloned, Copied, Empty, Filter, FilterMap, Fuse, FusedIterator, InPlaceIterable, Map, Once, |
4 |
| - OnceWith, TrustedFused, TrustedLen, |
| 3 | + Cloned, Copied, Empty, Filter, FilterMap, Fuse, FusedIterator, Map, Once, OnceWith, |
| 4 | + TrustedFused, TrustedLen, |
5 | 5 | };
|
6 | 6 | use crate::num::NonZero;
|
7 | 7 | use crate::ops::{ControlFlow, Try};
|
@@ -157,21 +157,6 @@ where
|
157 | 157 | {
|
158 | 158 | }
|
159 | 159 |
|
160 |
| -#[unstable(issue = "none", feature = "inplace_iteration")] |
161 |
| -unsafe impl<I, U, F> InPlaceIterable for FlatMap<I, U, F> |
162 |
| -where |
163 |
| - I: InPlaceIterable, |
164 |
| - U: BoundedSize + IntoIterator, |
165 |
| -{ |
166 |
| - const EXPAND_BY: Option<NonZero<usize>> = const { |
167 |
| - match (I::EXPAND_BY, U::UPPER_BOUND) { |
168 |
| - (Some(m), Some(n)) => m.checked_mul(n), |
169 |
| - _ => None, |
170 |
| - } |
171 |
| - }; |
172 |
| - const MERGE_BY: Option<NonZero<usize>> = I::MERGE_BY; |
173 |
| -} |
174 |
| - |
175 | 160 | #[unstable(issue = "none", feature = "inplace_iteration")]
|
176 | 161 | unsafe impl<I, U, F> SourceIter for FlatMap<I, U, F>
|
177 | 162 | where
|
@@ -386,21 +371,6 @@ where
|
386 | 371 | {
|
387 | 372 | }
|
388 | 373 |
|
389 |
| -#[unstable(issue = "none", feature = "inplace_iteration")] |
390 |
| -unsafe impl<I> InPlaceIterable for Flatten<I> |
391 |
| -where |
392 |
| - I: InPlaceIterable + Iterator, |
393 |
| - <I as Iterator>::Item: IntoIterator + BoundedSize, |
394 |
| -{ |
395 |
| - const EXPAND_BY: Option<NonZero<usize>> = const { |
396 |
| - match (I::EXPAND_BY, I::Item::UPPER_BOUND) { |
397 |
| - (Some(m), Some(n)) => m.checked_mul(n), |
398 |
| - _ => None, |
399 |
| - } |
400 |
| - }; |
401 |
| - const MERGE_BY: Option<NonZero<usize>> = I::MERGE_BY; |
402 |
| -} |
403 |
| - |
404 | 374 | #[unstable(issue = "none", feature = "inplace_iteration")]
|
405 | 375 | unsafe impl<I> SourceIter for Flatten<I>
|
406 | 376 | where
|
|
0 commit comments