From dc5590411e5380e79d3b628a250760f9f0fdbe7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Miku=C5=82a?= Date: Fri, 5 Apr 2019 12:26:16 +0200 Subject: [PATCH] Inline __getit --- src/libstd/thread/local.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libstd/thread/local.rs b/src/libstd/thread/local.rs index bfc1deddf7bdb..d150c527e4c7d 100644 --- a/src/libstd/thread/local.rs +++ b/src/libstd/thread/local.rs @@ -159,6 +159,8 @@ macro_rules! __thread_local_inner { #[inline] fn __init() -> $t { $init } + // FIXME: https://github.com/rust-lang/rust/issues/44391 + #[cfg_attr(not(target_env = "msvc"), inline)] unsafe fn __getit() -> $crate::option::Option< &'static $crate::cell::UnsafeCell< $crate::option::Option<$t>>>