File tree 1 file changed +6
-2
lines changed
library/core/src/iter/adapters
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -427,9 +427,13 @@ where
427
427
}
428
428
}
429
429
430
- // Since SourceIter forwards the left hand side we do the same here
431
430
#[ unstable( issue = "none" , feature = "inplace_iteration" ) ]
432
- unsafe impl < A : InPlaceIterable , B : Iterator > InPlaceIterable for Zip < A , B > { }
431
+ // Limited to Item: Copy since interaction between Zip's use of TrustedRandomAccess
432
+ // and Drop implementation of the source is unclear.
433
+ //
434
+ // An additional method returning the number of times the source has been logically advanced
435
+ // (without calling next()) would be needed to properly drop the remainder of the source.
436
+ unsafe impl < A : InPlaceIterable , B : Iterator > InPlaceIterable for Zip < A , B > where A :: Item : Copy { }
433
437
434
438
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
435
439
impl < A : Debug , B : Debug > Debug for Zip < A , B > {
You can’t perform that action at this time.
0 commit comments