From d6e67e938bfce049432b3084787c055911b76f5c Mon Sep 17 00:00:00 2001 From: Renato Zannon Date: Mon, 12 Jan 2015 17:12:20 -0200 Subject: [PATCH] Vec's IntoIter should be Send/Sync when Vec is (fixes #21027) --- src/libcollections/vec.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index 47afc78bc1213..ca68a54a39f98 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -1511,6 +1511,9 @@ pub struct IntoIter { end: *const T } +unsafe impl Send for IntoIter { } +unsafe impl Sync for IntoIter { } + impl IntoIter { #[inline] /// Drops all items that have not yet been moved and returns the empty vector.