From b0d9c42c46ce0502fed45e5d7d0ba18a71030662 Mon Sep 17 00:00:00 2001 From: Erik Desjardins Date: Sun, 17 Apr 2022 02:15:45 -0400 Subject: [PATCH] Revert "Auto merge of #94373 - erikdesjardins:getitinl, r=Mark-Simulacrum" This reverts commit 035a717ee8bf548868fb50b5c7ca562fc4a657a7, reversing changes made to 761e8884858759b21f3374ad610494e68c087a38. --- library/std/src/thread/local.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/std/src/thread/local.rs b/library/std/src/thread/local.rs index 047d07ad57d..4ab8fb2e905 100644 --- a/library/std/src/thread/local.rs +++ b/library/std/src/thread/local.rs @@ -178,7 +178,7 @@ macro_rules! thread_local { macro_rules! __thread_local_inner { // used to generate the `LocalKey` value for const-initialized thread locals (@key $t:ty, const $init:expr) => {{ - #[cfg_attr(not(windows), inline(always))] // see comments below + #[cfg_attr(not(windows), inline)] // see comments below #[deny(unsafe_op_in_unsafe_fn)] unsafe fn __getit( _init: $crate::option::Option<&mut $crate::option::Option<$t>>, @@ -312,7 +312,7 @@ fn __init() -> $t { $init } // gets the pessimistic path for now where it's never inlined. // // The issue of "should enable on Windows sometimes" is #84933 - #[cfg_attr(not(windows), inline(always))] + #[cfg_attr(not(windows), inline)] unsafe fn __getit( init: $crate::option::Option<&mut $crate::option::Option<$t>>, ) -> $crate::option::Option<&'static $t> {