rollup merge of #21036: renato-zannon/into-iter-impls

fixes #21027
This commit is contained in:
Alex Crichton 2015-01-15 14:11:36 -08:00
commit 1ba75d2aed

View File

@ -1511,6 +1511,9 @@ pub struct IntoIter<T> {
end: *const T end: *const T
} }
unsafe impl<T: Send> Send for IntoIter<T> { }
unsafe impl<T: Sync> Sync for IntoIter<T> { }
impl<T> IntoIter<T> { impl<T> IntoIter<T> {
#[inline] #[inline]
/// Drops all items that have not yet been moved and returns the empty vector. /// Drops all items that have not yet been moved and returns the empty vector.