diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-12-30 16:26:13 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-12-30 16:26:13 -0800 |
| commit | 899eb65b29bf666b05b155a3d4cc6002ac8cb26a (patch) | |
| tree | 216bd65c40987f6166e41dbb289d159137abf297 /src/libcollections | |
| parent | d058520f064ccc3fefcdbe2055c9690df8a0175c (diff) | |
| parent | 8fb25ab5b0c8097d545911ab8a0de822771e1f03 (diff) | |
| download | rust-899eb65b29bf666b05b155a3d4cc6002ac8cb26a.tar.gz rust-899eb65b29bf666b05b155a3d4cc6002ac8cb26a.zip | |
rollup merge of #20326: rohitjoshi/master
fixes #20322
Diffstat (limited to 'src/libcollections')
| -rw-r--r-- | src/libcollections/ring_buf.rs | 6 |
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() |
