From 766a71922fcabb8e0885b372d116c07149b6bb07 Mon Sep 17 00:00:00 2001 From: Luqman Aden Date: Sun, 28 Dec 2014 14:36:45 -0500 Subject: [PATCH] libcollections: impl Send/Sync for Vec. --- src/libcollections/vec.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index a45e1aa2416..bf69980b49c 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -139,6 +139,9 @@ pub struct Vec { cap: uint, } +unsafe impl Send for Vec { } +unsafe impl Sync for Vec { } + /// A clone-on-write vector pub type CowVec<'a, T> = Cow<'a, Vec, [T]>;