mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
commit
899eb65b29
@ -48,6 +48,12 @@ pub struct RingBuf<T> {
|
||||
ptr: *mut 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> {
|
||||
|
Loading…
Reference in New Issue
Block a user