From 89f39700581761f0b45cd9f58e6ab89744295c62 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Sun, 8 Apr 2018 08:51:18 +0200 Subject: [PATCH] Add #[inline] back on __getit (fixes #25088) --- src/libstd/thread/local.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libstd/thread/local.rs b/src/libstd/thread/local.rs index 40d3280baa687..7e032ab2e7d23 100644 --- a/src/libstd/thread/local.rs +++ b/src/libstd/thread/local.rs @@ -168,6 +168,7 @@ macro_rules! __thread_local_inner { #[inline] fn __init() -> $t { $init } + #[inline] unsafe fn __getit() -> $crate::option::Option< &'static $crate::cell::UnsafeCell< $crate::option::Option<$t>>>