We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 276029d commit 6c94136Copy full SHA for 6c94136
library/std/src/sys/common/thread_local/os_local.rs
@@ -49,7 +49,9 @@ macro_rules! __thread_local_inner {
49
#[inline]
50
fn __init() -> $t { $init }
51
52
- #[cfg_attr(not(bootstrap), inline)]
+ // `#[inline] does not work on windows-gnu due to linking errors around dllimports.
53
+ // See https://github.com/rust-lang/rust/issues/109797.
54
+ #[cfg_attr(not(windows), inline)]
55
unsafe fn __getit(
56
init: $crate::option::Option<&mut $crate::option::Option<$t>>,
57
) -> $crate::option::Option<&'static $t> {
0 commit comments