From 752453a1ff193c4be5e53cde2879b2aae91abe97 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Sat, 22 Apr 2023 15:23:55 +0200 Subject: [PATCH] Add comment about `__thread_local_inner` in `thread_local` --- library/std/src/thread/local.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/std/src/thread/local.rs b/library/std/src/thread/local.rs index 7fdf03acc14d9..7dc6f5fb052d7 100644 --- a/library/std/src/thread/local.rs +++ b/library/std/src/thread/local.rs @@ -152,6 +152,7 @@ macro_rules! thread_local { // empty (base case for the recursion) () => {}; + // the `__thread_local_inner` macro is declared in `sys::common::thread_local` ($(#[$attr:meta])* $vis:vis static $name:ident: $t:ty = const { $init:expr }; $($rest:tt)*) => ( $crate::__thread_local_inner!($(#[$attr])* $vis $name, $t, const $init); $crate::thread_local!($($rest)*);