diff options
| author | Luqman Aden <laden@csclub.uwaterloo.ca> | 2014-12-28 14:36:45 -0500 |
|---|---|---|
| committer | Luqman Aden <laden@csclub.uwaterloo.ca> | 2014-12-28 19:40:48 -0500 |
| commit | 766a71922fcabb8e0885b372d116c07149b6bb07 (patch) | |
| tree | ecd504ea85908c24f5eff60d110a46ea9ad05174 | |
| parent | 0e039ada55bab9b94ceb3fabff409790e37635c6 (diff) | |
| download | rust-766a71922fcabb8e0885b372d116c07149b6bb07.tar.gz rust-766a71922fcabb8e0885b372d116c07149b6bb07.zip | |
libcollections: impl Send/Sync for Vec.
| -rw-r--r-- | src/libcollections/vec.rs | 3 |
1 files changed, 3 insertions, 0 deletions
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<T> { cap: uint, } +unsafe impl<T: Send> Send for Vec<T> { } +unsafe impl<T: Sync> Sync for Vec<T> { } + /// A clone-on-write vector pub type CowVec<'a, T> = Cow<'a, Vec<T>, [T]>; |
