Skip to content

Commit 581dfa7

Browse files
committed
Merge pull request #21036 from renato-zannon/into-iter-impls
Vec's IntoIter should be Send/Sync when Vec is Reviewed-by: alexcrichton
2 parents cedc798 + d6e67e9 commit 581dfa7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcollections/vec.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1511,6 +1511,9 @@ pub struct IntoIter<T> {
15111511
end: *const T
15121512
}
15131513

1514+
unsafe impl<T: Send> Send for IntoIter<T> { }
1515+
unsafe impl<T: Sync> Sync for IntoIter<T> { }
1516+
15141517
impl<T> IntoIter<T> {
15151518
#[inline]
15161519
/// Drops all items that have not yet been moved and returns the empty vector.

0 commit comments

Comments
 (0)