File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ macro_rules! thread_local {
149149#[ allow_internal_unstable( thread_local_internals, cfg_target_thread_local, thread_local) ]
150150#[ allow_internal_unsafe]
151151macro_rules! __thread_local_inner {
152- ( @key $( # [ $attr : meta ] ) * $vis : vis $name : ident , $ t: ty, $init: expr) => {
152+ ( @key $t: ty, $init: expr) => {
153153 {
154154 #[ inline]
155155 fn __init( ) -> $t { $init }
@@ -184,7 +184,7 @@ macro_rules! __thread_local_inner {
184184 } ;
185185 ( $( #[ $attr: meta] ) * $vis: vis $name: ident, $t: ty, $init: expr) => {
186186 $( #[ $attr] ) * $vis const $name: $crate:: thread:: LocalKey <$t> =
187- $crate:: __thread_local_inner!( @key $( # [ $attr ] ) * $vis $name , $ t, $init) ;
187+ $crate:: __thread_local_inner!( @key $t, $init) ;
188188 }
189189}
190190
You can’t perform that action at this time.
0 commit comments