File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ macro_rules! thread_local {
177
177
macro_rules! __thread_local_inner {
178
178
// used to generate the `LocalKey` value for const-initialized thread locals
179
179
( @key $t: ty, const $init: expr) => { {
180
- #[ cfg_attr( not( windows) , inline) ] // see comments below
180
+ #[ cfg_attr( not( windows) , inline( always ) ) ] // see comments below
181
181
unsafe fn __getit( ) -> $crate:: option:: Option <& ' static $t> {
182
182
const INIT_EXPR : $t = $init;
183
183
@@ -297,7 +297,7 @@ macro_rules! __thread_local_inner {
297
297
// gets the pessimistic path for now where it's never inlined.
298
298
//
299
299
// The issue of "should enable on Windows sometimes" is #84933
300
- #[ cfg_attr( not( windows) , inline) ]
300
+ #[ cfg_attr( not( windows) , inline( always ) ) ]
301
301
unsafe fn __getit( ) -> $crate:: option:: Option <& ' static $t> {
302
302
#[ cfg( all( target_family = "wasm" , not( target_feature = "atomics" ) ) ) ]
303
303
static __KEY: $crate:: thread:: __StaticLocalKeyInner<$t> =
You can’t perform that action at this time.
0 commit comments