diff options
| author | Pietro Albini <pietro@pietroalbini.org> | 2023-04-21 15:33:04 +0200 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2023-04-28 08:47:55 -0700 |
| commit | a7bb8c78517102e375d4d04e5b2cac4f121c56e5 (patch) | |
| tree | fc36d3dfa885acdeb87d188dca16143ef538db3e /library/std/src/sys | |
| parent | d64f46a553e5a1583680919807884794c93e63e8 (diff) | |
| download | rust-a7bb8c78517102e375d4d04e5b2cac4f121c56e5.tar.gz rust-a7bb8c78517102e375d4d04e5b2cac4f121c56e5.zip | |
handle cfg(bootstrap)
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/common/thread_local/fast_local.rs | 4 | ||||
| -rw-r--r-- | library/std/src/sys/common/thread_local/os_local.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/library/std/src/sys/common/thread_local/fast_local.rs b/library/std/src/sys/common/thread_local/fast_local.rs index 914e017f7ff..447044a798b 100644 --- a/library/std/src/sys/common/thread_local/fast_local.rs +++ b/library/std/src/sys/common/thread_local/fast_local.rs @@ -11,7 +11,7 @@ use crate::{fmt, mem, panic}; pub macro thread_local_inner { // used to generate the `LocalKey` value for const-initialized thread locals (@key $t:ty, const $init:expr) => {{ - #[cfg_attr(not(bootstrap), inline)] + #[inline] #[deny(unsafe_op_in_unsafe_fn)] unsafe fn __getit( _init: $crate::option::Option<&mut $crate::option::Option<$t>>, @@ -78,7 +78,7 @@ pub macro thread_local_inner { #[inline] fn __init() -> $t { $init } - #[cfg_attr(not(bootstrap), inline)] + #[inline] unsafe fn __getit( init: $crate::option::Option<&mut $crate::option::Option<$t>>, ) -> $crate::option::Option<&'static $t> { diff --git a/library/std/src/sys/common/thread_local/os_local.rs b/library/std/src/sys/common/thread_local/os_local.rs index e9516f9983f..d004897df28 100644 --- a/library/std/src/sys/common/thread_local/os_local.rs +++ b/library/std/src/sys/common/thread_local/os_local.rs @@ -11,7 +11,7 @@ use crate::{fmt, marker, panic, ptr}; pub macro thread_local_inner { // used to generate the `LocalKey` value for const-initialized thread locals (@key $t:ty, const $init:expr) => {{ - #[cfg_attr(not(bootstrap), inline)] + #[inline] #[deny(unsafe_op_in_unsafe_fn)] unsafe fn __getit( _init: $crate::option::Option<&mut $crate::option::Option<$t>>, |
