We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8adb65 commit 388027aCopy full SHA for 388027a
std/src/sys/thread_local/os.rs
@@ -28,9 +28,7 @@ pub macro thread_local_inner {
28
// user provided type or type alias with a matching name. Please update the shadowing test
29
// in `tests/thread.rs` if these types are renamed.
30
unsafe {
31
- // Inlining does not work on windows-gnu due to linking errors around
32
- // dllimports. See https://github.com/rust-lang/rust/issues/109797.
33
- $crate::thread::LocalKey::new(#[cfg_attr(windows, inline(never))] |init| {
+ $crate::thread::LocalKey::new(|init| {
34
static VAL: $crate::thread::local_impl::Storage<$t>
35
= $crate::thread::local_impl::Storage::new();
36
VAL.get(init, __init)
0 commit comments