@@ -95,7 +95,7 @@ macro_rules! thread_local {
95
95
( static $name: ident: $t: ty = $init: expr) => (
96
96
static $name: :: std:: thread:: LocalKey <$t> = {
97
97
use std:: cell:: UnsafeCell as __UnsafeCell;
98
- use std:: thread:: __local:: __impl :: KeyInner as __KeyInner;
98
+ use std:: thread:: __local:: KeyInner as __KeyInner;
99
99
use std:: option:: Option as __Option;
100
100
use std:: option:: Option :: None as __None;
101
101
@@ -112,7 +112,7 @@ macro_rules! thread_local {
112
112
( pub static $name: ident: $t: ty = $init: expr) => (
113
113
pub static $name: :: std:: thread:: LocalKey <$t> = {
114
114
use std:: cell:: UnsafeCell as __UnsafeCell;
115
- use std:: thread:: __local:: __impl :: KeyInner as __KeyInner;
115
+ use std:: thread:: __local:: KeyInner as __KeyInner;
116
116
use std:: option:: Option as __Option;
117
117
use std:: option:: Option :: None as __None;
118
118
@@ -156,20 +156,20 @@ macro_rules! __thread_local_inner {
156
156
#[ cfg_attr( all( any( target_os = "macos" , target_os = "linux" ) ,
157
157
not( target_arch = "aarch64" ) ) ,
158
158
thread_local) ]
159
- static $name: :: std:: thread:: __local:: __impl :: KeyInner <$t> =
159
+ static $name: :: std:: thread:: __local:: KeyInner <$t> =
160
160
__thread_local_inner!( $init, $t) ;
161
161
) ;
162
162
( pub static $name: ident: $t: ty = $init: expr) => (
163
163
#[ cfg_attr( all( any( target_os = "macos" , target_os = "linux" ) ,
164
164
not( target_arch = "aarch64" ) ) ,
165
165
thread_local) ]
166
- pub static $name: :: std:: thread:: __local:: __impl :: KeyInner <$t> =
166
+ pub static $name: :: std:: thread:: __local:: KeyInner <$t> =
167
167
__thread_local_inner!( $init, $t) ;
168
168
) ;
169
169
( $init: expr, $t: ty) => ( {
170
170
#[ cfg( all( any( target_os = "macos" , target_os = "linux" ) , not( target_arch = "aarch64" ) ) ) ]
171
- const _INIT: :: std:: thread:: __local:: __impl :: KeyInner <$t> = {
172
- :: std:: thread:: __local:: __impl :: KeyInner {
171
+ const _INIT: :: std:: thread:: __local:: KeyInner <$t> = {
172
+ :: std:: thread:: __local:: KeyInner {
173
173
inner: :: std:: cell:: UnsafeCell { value: $init } ,
174
174
dtor_registered: :: std:: cell:: UnsafeCell { value: false } ,
175
175
dtor_running: :: std:: cell:: UnsafeCell { value: false } ,
@@ -178,13 +178,13 @@ macro_rules! __thread_local_inner {
178
178
179
179
#[ allow( trivial_casts) ]
180
180
#[ cfg( any( not( any( target_os = "macos" , target_os = "linux" ) ) , target_arch = "aarch64" ) ) ]
181
- const _INIT: :: std:: thread:: __local:: __impl :: KeyInner <$t> = {
182
- :: std:: thread:: __local:: __impl :: KeyInner {
181
+ const _INIT: :: std:: thread:: __local:: KeyInner <$t> = {
182
+ :: std:: thread:: __local:: KeyInner {
183
183
inner: :: std:: cell:: UnsafeCell { value: $init } ,
184
- os: :: std:: thread:: __local:: __impl :: OsStaticKey {
185
- inner: :: std:: thread:: __local:: __impl :: OS_INIT_INNER ,
184
+ os: :: std:: thread:: __local:: OsStaticKey {
185
+ inner: :: std:: thread:: __local:: OS_INIT_INNER ,
186
186
dtor: :: std:: option:: Option :: Some (
187
- :: std:: thread:: __local:: __impl :: destroy_value:: <$t>
187
+ :: std:: thread:: __local:: destroy_value:: <$t>
188
188
) ,
189
189
} ,
190
190
}
0 commit comments