Skip to content

Commit f573bd8

Browse files
authored
Rollup merge of rust-lang#66146 - 3442853561:patch-2, r=Mark-Simulacrum
Remove unused parameters in `__thread_local_inner` Fixes rust-lang#65993.
2 parents e3fbd3c + 936349c commit f573bd8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/thread/local.rs

+2-2
Original file line numberDiff line numberDiff 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]
151151
macro_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

0 commit comments

Comments
 (0)