Skip to content

Commit 766a719

Browse files
committed
libcollections: impl Send/Sync for Vec.
1 parent 0e039ad commit 766a719

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcollections/vec.rs

+3
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ pub struct Vec<T> {
139139
cap: uint,
140140
}
141141

142+
unsafe impl<T: Send> Send for Vec<T> { }
143+
unsafe impl<T: Sync> Sync for Vec<T> { }
144+
142145
/// A clone-on-write vector
143146
pub type CowVec<'a, T> = Cow<'a, Vec<T>, [T]>;
144147

0 commit comments

Comments
 (0)