Skip to content

Commit

Permalink
Update local.rs
Browse files Browse the repository at this point in the history
Removed parameters not used in the macro
  • Loading branch information
3442853561 authored Nov 6, 2019
1 parent e4931ea commit 936349c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/thread/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ macro_rules! thread_local {
#[allow_internal_unstable(thread_local_internals, cfg_target_thread_local, thread_local)]
#[allow_internal_unsafe]
macro_rules! __thread_local_inner {
(@key $(#[$attr:meta])* $vis:vis $name:ident, $t:ty, $init:expr) => {
(@key $t:ty, $init:expr) => {
{
#[inline]
fn __init() -> $t { $init }
Expand Down Expand Up @@ -184,7 +184,7 @@ macro_rules! __thread_local_inner {
};
($(#[$attr:meta])* $vis:vis $name:ident, $t:ty, $init:expr) => {
$(#[$attr])* $vis const $name: $crate::thread::LocalKey<$t> =
$crate::__thread_local_inner!(@key $(#[$attr])* $vis $name, $t, $init);
$crate::__thread_local_inner!(@key $t, $init);
}
}

Expand Down

0 comments on commit 936349c

Please sign in to comment.