Skip to content

Commit

Permalink
Vec's IntoIter should be Send/Sync when Vec is (fixes #21027)
Browse files Browse the repository at this point in the history
  • Loading branch information
renato-zannon committed Jan 12, 2015
1 parent 055cc2e commit d6e67e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libcollections/vec.rs
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 d6e67e9

Please sign in to comment.