Vec's IntoIter should be Send/Sync when Vec is (fixes )

This commit is contained in:
Renato Zannon 2015-01-12 17:12:20 -02:00
parent 055cc2ee74
commit d6e67e938b

@ -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.