We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
use
1 parent 70d05b7 commit 326454aCopy full SHA for 326454a
library/std/src/sys/thread_local/statik.rs
@@ -14,9 +14,7 @@ pub macro thread_local_inner {
14
(@key $t:ty, const $init:expr) => {{
15
const __INIT: $t = $init;
16
17
- // NOTE: this cannot import `LocalKey` or `Storage` with a `use` because that can shadow
18
- // user provided type or type alias with a matching name. Please update the shadowing test
19
- // in `tests/thread.rs` if these types are renamed.
+ // NOTE: Please update the shadowing test in `tests/thread.rs` if these types are renamed.
20
unsafe {
21
$crate::thread::LocalKey::new(|_| {
22
static VAL: $crate::thread::local_impl::EagerStorage<$t> = $crate::thread::local_impl::EagerStorage { value: __INIT };
0 commit comments