about summary refs log tree commit diff
path: root/library/std/src/thread
diff options
context:
space:
mode:
authorAlex Macleod <alex@macleod.io>2022-01-06 14:50:46 +0000
committerAlex Macleod <alex@macleod.io>2022-01-06 14:59:33 +0000
commit7ea03db04a38bd5bb8ad13ee805d94833aacf032 (patch)
treea3ee65214a393efaa5070dc186444ac51a83a23b /library/std/src/thread
parentf1ce0e6a00593493a12e0e3662119786c761f375 (diff)
downloadrust-7ea03db04a38bd5bb8ad13ee805d94833aacf032.tar.gz
rust-7ea03db04a38bd5bb8ad13ee805d94833aacf032.zip
Add diagnostic items for macros
Diffstat (limited to 'library/std/src/thread')
-rw-r--r--library/std/src/thread/local.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/thread/local.rs b/library/std/src/thread/local.rs
index 1d2f6e97680..1be3ed757ba 100644
--- a/library/std/src/thread/local.rs
+++ b/library/std/src/thread/local.rs
@@ -142,6 +142,7 @@ impl<T: 'static> fmt::Debug for LocalKey<T> {
 /// [`std::thread::LocalKey`]: crate::thread::LocalKey
 #[macro_export]
 #[stable(feature = "rust1", since = "1.0.0")]
+#[cfg_attr(not(test), rustc_diagnostic_item = "thread_local_macro")]
 #[allow_internal_unstable(thread_local_internals)]
 macro_rules! thread_local {
     // empty (base case for the recursion)