about summary refs log tree commit diff
path: root/library/std/src/thread/local.rs
diff options
context:
space:
mode:
authormejrs <>2022-09-27 13:06:31 +0200
committermejrs <>2022-09-27 21:42:09 +0200
commitf3ac328d584b83bb7f0b4faa0f7a5699151b3ce9 (patch)
treecf8dc2045284ed418f109b2b9db461b0d3116d26 /library/std/src/thread/local.rs
parentc4c94151321b8018ceb06ccff359109b8fed6bfe (diff)
downloadrust-f3ac328d584b83bb7f0b4faa0f7a5699151b3ce9.tar.gz
rust-f3ac328d584b83bb7f0b4faa0f7a5699151b3ce9.zip
Address feedback
Diffstat (limited to 'library/std/src/thread/local.rs')
-rw-r--r--library/std/src/thread/local.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/thread/local.rs b/library/std/src/thread/local.rs
index 1d728349951..ffd17dc9909 100644
--- a/library/std/src/thread/local.rs
+++ b/library/std/src/thread/local.rs
@@ -95,7 +95,7 @@ use crate::fmt;
 /// [loader lock]: https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-best-practices
 /// [`JoinHandle::join`]: crate::thread::JoinHandle::join
 /// [`with`]: LocalKey::with
-#[rustc_diagnostic_item = "LocalKey"]
+#[cfg_attr(not(test), rustc_diagnostic_item = "LocalKey")]
 #[stable(feature = "rust1", since = "1.0.0")]
 pub struct LocalKey<T: 'static> {
     // This outer `LocalKey<T>` type is what's going to be stored in statics,