Skip to content

Commit

Permalink
Merge pull request #21036 from renato-zannon/into-iter-impls
Browse files Browse the repository at this point in the history
Vec's IntoIter should be Send/Sync when Vec is

Reviewed-by: alexcrichton
  • Loading branch information
bors committed Jan 14, 2015
2 parents 6f177e7 + d6e67e9 commit 85bdee7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libcollections/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1511,6 +1511,9 @@ pub struct IntoIter<T> {
end: *const T
}

unsafe impl<T: Send> Send for IntoIter<T> { }
unsafe impl<T: Sync> Sync for IntoIter<T> { }

impl<T> IntoIter<T> {
#[inline]
/// Drops all items that have not yet been moved and returns the empty vector.
Expand Down

0 comments on commit 85bdee7

Please sign in to comment.