]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sync/mutex.rs
More diagnostic items for Clippy usage
[rust.git] / src / libstd / sync / mutex.rs
index 0cb16b19d7326767cb2282cd74edfea3489f66d0..797b22fdd1279ca931234284192bac2e2e4ddc02 100644 (file)
 /// *guard += 1;
 /// ```
 #[stable(feature = "rust1", since = "1.0.0")]
+#[cfg_attr(not(test), rustc_diagnostic_item = "mutex_type")]
 pub struct Mutex<T: ?Sized> {
     // Note that this mutex is in a *box*, not inlined into the struct itself.
     // Once a native mutex has been used once, its address can never change (it