We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 326454a commit fe4904bCopy full SHA for fe4904b
library/std/src/sys/thread_local/statik.rs
@@ -17,7 +17,8 @@ pub macro thread_local_inner {
17
// NOTE: Please update the shadowing test in `tests/thread.rs` if these types are renamed.
18
unsafe {
19
$crate::thread::LocalKey::new(|_| {
20
- static VAL: $crate::thread::local_impl::EagerStorage<$t> = $crate::thread::local_impl::EagerStorage { value: __INIT };
+ static VAL: $crate::thread::local_impl::EagerStorage<$t> =
21
+ $crate::thread::local_impl::EagerStorage { value: __INIT };
22
&VAL.value
23
})
24
}
0 commit comments