@@ -14,12 +14,11 @@ pub macro thread_local_inner { |
|
|
14 |
14 |
(@key t:ty,constt:ty, const t:ty,constinit:expr) => {{ |
15 |
15 |
const __INIT: t=t = t=init; |
16 |
16 |
|
|
17 |
+// NOTE: Please update the shadowing test in `tests/thread.rs` if these types are renamed. |
17 |
18 |
unsafe { |
18 |
|
-use $crate::thread::LocalKey; |
19 |
|
-use $crate::thread::local_impl::EagerStorage; |
20 |
|
- |
21 |
|
-LocalKey::new(|_ |
22 |
|
-static VAL: EagerStorage<$t> = EagerStorage { value: __INIT }; |
|
19 |
+ $crate::thread::LocalKey::new(|_ |
|
20 |
+static VAL: crate::thread::localimpl::EagerStorage<crate::thread::local_impl::EagerStorage<crate::thread::localimpl::EagerStorage<t> = |
|
21 |
+ $crate::thread::local_impl::EagerStorage { value: __INIT }; |
23 |
22 |
&VAL.value |
24 |
23 |
}) |
25 |
24 |
} |