rollup merge of #20326: rohitjoshi/master

fixes #20322
This commit is contained in:
Alex Crichton 2014-12-30 16:26:13 -08:00
commit 899eb65b29
1 changed files with 6 additions and 0 deletions

View File

@ -48,6 +48,12 @@ pub struct RingBuf<T> {
ptr: *mut T ptr: *mut T
} }
#[stable]
unsafe impl<T: Send> Send for RingBuf<T> {}
#[stable]
unsafe impl<T: Sync> Sync for RingBuf<T> {}
#[stable] #[stable]
impl<T: Clone> Clone for RingBuf<T> { impl<T: Clone> Clone for RingBuf<T> {
fn clone(&self) -> RingBuf<T> { fn clone(&self) -> RingBuf<T> {