File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -399,6 +399,8 @@ macro_rules! await {
399399/// For more information about select, see the `std::sync::mpsc::Select` structure.
400400#[ macro_export]
401401#[ unstable( feature = "mpsc_select" , issue = "27800" ) ]
402+ #[ rustc_deprecated( since = "1.32.0" ,
403+ reason = "channel selection will be removed in a future release" ) ]
402404macro_rules! select {
403405 (
404406 $( $name: pat = $rx: ident. $meth: ident( ) => $code: expr) ,+
Original file line number Diff line number Diff line change 124124//! ```
125125
126126#![ stable( feature = "rust1" , since = "1.0.0" ) ]
127+ #![ allow( deprecated) ] // for mpsc_select
127128
128129// A description of how Rust's channel implementation works
129130//
Original file line number Diff line number Diff line change 5151#![ unstable( feature = "mpsc_select" ,
5252 reason = "This implementation, while likely sufficient, is unsafe and \
5353 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.",
5855 issue = "27800" ) ]
56+ #![ rustc_deprecated( since = "1.32.0" ,
57+ reason = "channel selection will be removed in a future release" ) ]
5958
6059
6160use fmt;
Original file line number Diff line number Diff line change 1616// expose is still present.
1717
1818#![ feature( mpsc_select) ]
19+ #![ allow( deprecated) ]
1920
2021use std:: sync:: mpsc:: { channel, Sender , Receiver } ;
2122use std:: thread;
You can’t perform that action at this time.
0 commit comments