File tree 4 files changed +7
-4
lines changed
4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -399,6 +399,8 @@ macro_rules! await {
399
399
/// For more information about select, see the `std::sync::mpsc::Select` structure.
400
400
#[ macro_export]
401
401
#[ unstable( feature = "mpsc_select" , issue = "27800" ) ]
402
+ #[ rustc_deprecated( since = "1.32.0" ,
403
+ reason = "channel selection will be removed in a future release" ) ]
402
404
macro_rules! select {
403
405
(
404
406
$( $name: pat = $rx: ident. $meth: ident( ) => $code: expr) ,+
Original file line number Diff line number Diff line change 124
124
//! ```
125
125
126
126
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
127
+ #![ allow( deprecated) ] // for mpsc_select
127
128
128
129
// A description of how Rust's channel implementation works
129
130
//
Original file line number Diff line number Diff line change 51
51
#![ unstable( feature = "mpsc_select" ,
52
52
reason = "This implementation, while likely sufficient, is unsafe and \
53
53
likely to be error prone. At some point in the future this \
54
- module will likely be replaced, and it is currently \
55
- unknown how much API breakage that will cause. The ability \
56
- to select over a number of channels will remain forever, \
57
- but no guarantees beyond this are being made",
54
+ module will be removed.",
58
55
issue = "27800" ) ]
56
+ #![ rustc_deprecated( since = "1.32.0" ,
57
+ reason = "channel selection will be removed in a future release" ) ]
59
58
60
59
61
60
use fmt;
Original file line number Diff line number Diff line change 16
16
// expose is still present.
17
17
18
18
#![ feature( mpsc_select) ]
19
+ #![ allow( deprecated) ]
19
20
20
21
use std:: sync:: mpsc:: { channel, Sender , Receiver } ;
21
22
use std:: thread;
You can’t perform that action at this time.
0 commit comments