File tree 2 files changed +1
-8
lines changed
2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -499,8 +499,6 @@ unsafe impl<T: Send> Send for Sender<T> { }
499
499
impl < T > !Sync for Sender < T > { }
500
500
501
501
/// The sending-half of Rust's synchronous [`sync_channel`] type.
502
- /// This half can only be owned by one thread, but it can be cloned
503
- /// to send to other threads.
504
502
///
505
503
/// Messages can be sent through this channel with [`send`] or [`try_send`].
506
504
///
@@ -555,9 +553,6 @@ pub struct SyncSender<T> {
555
553
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
556
554
unsafe impl < T : Send > Send for SyncSender < T > { }
557
555
558
- #[ stable( feature = "rust1" , since = "1.0.0" ) ]
559
- impl < T > !Sync for SyncSender < T > { }
560
-
561
556
/// An error returned from the [`Sender::send`] or [`SyncSender::send`]
562
557
/// function on **channel**s.
563
558
///
Original file line number Diff line number Diff line change 10
10
11
11
use std:: cell:: { Cell , RefCell } ;
12
12
use std:: rc:: { Rc , Weak } ;
13
- use std:: sync:: mpsc:: { Receiver , Sender , SyncSender } ;
13
+ use std:: sync:: mpsc:: { Receiver , Sender } ;
14
14
15
15
fn test < T : Sync > ( ) { }
16
16
@@ -29,6 +29,4 @@ fn main() {
29
29
//~^ ERROR `std::sync::mpsc::Receiver<i32>: std::marker::Sync` is not satisfied
30
30
test :: < Sender < i32 > > ( ) ;
31
31
//~^ ERROR `std::sync::mpsc::Sender<i32>: std::marker::Sync` is not satisfied
32
- test :: < SyncSender < i32 > > ( ) ;
33
- //~^ ERROR `std::sync::mpsc::SyncSender<i32>: std::marker::Sync` is not satisfied
34
32
}
You can’t perform that action at this time.
0 commit comments