about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libcollections/ring_buf.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libcollections/ring_buf.rs b/src/libcollections/ring_buf.rs
index c8d21761ac0..9e3bcf40a6e 100644
--- a/src/libcollections/ring_buf.rs
+++ b/src/libcollections/ring_buf.rs
@@ -49,6 +49,12 @@ pub struct RingBuf<T> {
 }
 
 #[stable]
+unsafe impl<T: Send> Send for RingBuf<T> {}
+
+#[stable]
+unsafe impl<T: Sync> Sync for RingBuf<T> {}
+
+#[stable]
 impl<T: Clone> Clone for RingBuf<T> {
     fn clone(&self) -> RingBuf<T> {
         self.iter().map(|t| t.clone()).collect()