about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-06-21 10:40:14 -0400
committerGitHub <noreply@github.com>2017-06-21 10:40:14 -0400
commit292fcc880fb851d0d582c0bc5a266c77b104fd8b (patch)
treeb0d3b8f84bd1f589df5173014022788464605c81 /src/libstd/sync
parent03198da2add75a0bcec792ffd84fcc8d94e8637e (diff)
parent0f6c01ddb6a493fe61452f657dcb43313203bfe8 (diff)
downloadrust-292fcc880fb851d0d582c0bc5a266c77b104fd8b.tar.gz
rust-292fcc880fb851d0d582c0bc5a266c77b104fd8b.zip
Rollup merge of #42397 - sfackler:syncsender-sync, r=alexcrichton
Implement Sync for SyncSender

r? @alexcrichton
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/mpsc/mod.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libstd/sync/mpsc/mod.rs b/src/libstd/sync/mpsc/mod.rs
index 7d5e1929cd2..dcd4c8dfdf5 100644
--- a/src/libstd/sync/mpsc/mod.rs
+++ b/src/libstd/sync/mpsc/mod.rs
@@ -499,8 +499,6 @@ unsafe impl<T: Send> Send for Sender<T> { }
 impl<T> !Sync for Sender<T> { }
 
 /// The sending-half of Rust's synchronous [`sync_channel`] type.
-/// This half can only be owned by one thread, but it can be cloned
-/// to send to other threads.
 ///
 /// Messages can be sent through this channel with [`send`] or [`try_send`].
 ///
@@ -555,9 +553,6 @@ pub struct SyncSender<T> {
 #[stable(feature = "rust1", since = "1.0.0")]
 unsafe impl<T: Send> Send for SyncSender<T> {}
 
-#[stable(feature = "rust1", since = "1.0.0")]
-impl<T> !Sync for SyncSender<T> {}
-
 /// An error returned from the [`Sender::send`] or [`SyncSender::send`]
 /// function on **channel**s.
 ///