@@ -107,14 +107,14 @@ pub struct LocalKey<T> {
107107#[ cfg( not( no_elf_tls) ) ]
108108macro_rules! thread_local {
109109 ( static $name: ident: $t: ty = $init: expr) => (
110- static $name: :: std :: thread:: LocalKey <$t> =
110+ static $name: $crate :: thread:: LocalKey <$t> =
111111 __thread_local_inner!( $t, $init,
112112 #[ cfg_attr( all( any( target_os = "macos" , target_os = "linux" ) ,
113113 not( target_arch = "aarch64" ) ) ,
114114 thread_local) ] ) ;
115115 ) ;
116116 ( pub static $name: ident: $t: ty = $init: expr) => (
117- pub static $name: :: std :: thread:: LocalKey <$t> =
117+ pub static $name: $crate :: thread:: LocalKey <$t> =
118118 __thread_local_inner!( $t, $init,
119119 #[ cfg_attr( all( any( target_os = "macos" , target_os = "linux" ) ,
120120 not( target_arch = "aarch64" ) ) ,
@@ -128,11 +128,11 @@ macro_rules! thread_local {
128128#[ cfg( no_elf_tls) ]
129129macro_rules! thread_local {
130130 ( static $name: ident: $t: ty = $init: expr) => (
131- static $name: :: std :: thread:: LocalKey <$t> =
131+ static $name: $crate :: thread:: LocalKey <$t> =
132132 __thread_local_inner!( $t, $init, #[ ] ) ;
133133 ) ;
134134 ( pub static $name: ident: $t: ty = $init: expr) => (
135- pub static $name: :: std :: thread:: LocalKey <$t> =
135+ pub static $name: $crate :: thread:: LocalKey <$t> =
136136 __thread_local_inner!( $t, $init, #[ ] ) ;
137137 ) ;
138138}
@@ -145,11 +145,11 @@ macro_rules! thread_local {
145145macro_rules! __thread_local_inner {
146146 ( $t: ty, $init: expr, #[ $( $attr: meta) ,* ] ) => { {
147147 $( #[ $attr] ) *
148- static __KEY: :: std :: thread:: __LocalKeyInner<$t> =
149- :: std :: thread:: __LocalKeyInner:: new( ) ;
148+ static __KEY: $crate :: thread:: __LocalKeyInner<$t> =
149+ $crate :: thread:: __LocalKeyInner:: new( ) ;
150150 fn __init( ) -> $t { $init }
151- fn __getit( ) -> & ' static :: std :: thread:: __LocalKeyInner<$t> { & __KEY }
152- :: std :: thread:: LocalKey :: new( __getit, __init)
151+ fn __getit( ) -> & ' static $crate :: thread:: __LocalKeyInner<$t> { & __KEY }
152+ $crate :: thread:: LocalKey :: new( __getit, __init)
153153 } }
154154}
155155
0 commit comments