about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-15 14:11:36 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-01-15 14:11:36 -0800
commit1ba75d2aed8ae78756c4af5ea046e9bda02df4df (patch)
tree23d93a58828a94fd2c3d7f91634f794f9b2d1fb9 /src
parent21effeb611e4a6716d48c92988cf5453ff44b0e1 (diff)
parentd6e67e938bfce049432b3084787c055911b76f5c (diff)
downloadrust-1ba75d2aed8ae78756c4af5ea046e9bda02df4df.tar.gz
rust-1ba75d2aed8ae78756c4af5ea046e9bda02df4df.zip
rollup merge of #21036: renato-zannon/into-iter-impls
fixes #21027
Diffstat (limited to 'src')
-rw-r--r--src/libcollections/vec.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs
index e5f9b2513e2..8f6c343205d 100644
--- a/src/libcollections/vec.rs
+++ b/src/libcollections/vec.rs
@@ -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.