1
Fork 0

Add diagnostic items

This commit is contained in:
Cameron Steffen 2021-02-26 21:23:42 -06:00
parent 4a6e67ead7
commit eada4d1c45
6 changed files with 10 additions and 0 deletions

View file

@ -310,6 +310,7 @@ mod cache_aligned;
/// println!("{}", recv.recv().unwrap()); // Received after 2 seconds
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[cfg_attr(not(test), rustc_diagnostic_item = "Receiver")]
pub struct Receiver<T> {
inner: UnsafeCell<Flavor<T>>,
}