We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cf22e4 commit 922fc91Copy full SHA for 922fc91
tokio/src/task/task_local.rs
@@ -51,6 +51,7 @@ macro_rules! task_local {
51
#[macro_export]
52
macro_rules! __task_local_inner {
53
($(#[$attr:meta])* $vis:vis $name:ident, $t:ty) => {
54
+ $(#[$attr])*
55
$vis static $name: $crate::task::LocalKey<$t> = {
56
std::thread_local! {
57
static __KEY: std::cell::RefCell<Option<$t>> = const { std::cell::RefCell::new(None) };
@@ -66,6 +67,7 @@ macro_rules! __task_local_inner {
66
67
68
69
70
71
72
73
static __KEY: std::cell::RefCell<Option<$t>> = std::cell::RefCell::new(None);
0 commit comments