mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-15 05:26:47 +00:00
implement Sync
for mpsc::Sender
This commit is contained in:
parent
7820972f86
commit
5f56956b3c
@ -347,8 +347,8 @@ pub struct Sender<T> {
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
unsafe impl<T: Send> Send for Sender<T> {}
|
||||
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
impl<T> !Sync for Sender<T> {}
|
||||
#[stable(feature = "mpsc_sender_sync", since = "CURRENT_RUSTC_VERSION")]
|
||||
unsafe impl<T: Send> Sync for Sender<T> {}
|
||||
|
||||
/// The sending-half of Rust's synchronous [`sync_channel`] type.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user