about summary refs log tree commit diff
path: root/library/std/src/thread/local.rs
diff options
context:
space:
mode:
authormejrs <>2022-09-26 00:55:35 +0200
committermejrs <>2022-09-27 21:42:09 +0200
commitc4c94151321b8018ceb06ccff359109b8fed6bfe (patch)
treee9572b4e96cee41a8934626b50b98e22305b19c8 /library/std/src/thread/local.rs
parent57ee5cf5a93923dae9c98bffb11545fc3a31368d (diff)
downloadrust-c4c94151321b8018ceb06ccff359109b8fed6bfe.tar.gz
rust-c4c94151321b8018ceb06ccff359109b8fed6bfe.zip
Wrapper suggestions
Diffstat (limited to 'library/std/src/thread/local.rs')
-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 8aedfc4a6b8..1d728349951 100644
--- a/library/std/src/thread/local.rs
+++ b/library/std/src/thread/local.rs
@@ -95,6 +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"]
 #[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,