From 8fb25ab5b0c8097d545911ab8a0de822771e1f03 Mon Sep 17 00:00:00 2001 From: Rohit Joshi Date: Tue, 30 Dec 2014 04:20:24 -0500 Subject: [PATCH] PR#20326 : Issue#20322: Adding unsafe Send and Sync traits implementation for RingBuf --- src/libcollections/ring_buf.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libcollections/ring_buf.rs b/src/libcollections/ring_buf.rs index df8e08f07a3..dcb5c8533c2 100644 --- a/src/libcollections/ring_buf.rs +++ b/src/libcollections/ring_buf.rs @@ -48,6 +48,12 @@ pub struct RingBuf { ptr: *mut T } +#[stable] +unsafe impl Send for RingBuf {} + +#[stable] +unsafe impl Sync for RingBuf {} + #[stable] impl Clone for RingBuf { fn clone(&self) -> RingBuf {