mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
Add Sender diagnostic item for std::sync::mpsc::Sender
Similar to the existing `Receiver` item, it will be used in Clippy to detect uses of `is_disconnected` that are racy.
This commit is contained in:
@@ -330,6 +330,7 @@ pub struct IntoIter<T> {
|
||||
/// assert_eq!(3, msg + msg2);
|
||||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[cfg_attr(not(test), rustc_diagnostic_item = "MpscSender")]
|
||||
pub struct Sender<T> {
|
||||
inner: mpmc::Sender<T>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user