From fa9743f0d4bff0da7790c2ad9b4c00f3efe17dc8 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Thu, 30 Apr 2020 14:32:47 -0700 Subject: [PATCH] macros: `scoped_thread_local` should be private (#2470) Do not export the `scoped_thread_local` macro outside of the Tokio crate. This is not considered a breaking change as the macro never worked if used from outside of the crate due to the generated code referencing crate-private types. --- tokio/src/macros/scoped_tls.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/tokio/src/macros/scoped_tls.rs b/tokio/src/macros/scoped_tls.rs index 666f382b2..886f9d44b 100644 --- a/tokio/src/macros/scoped_tls.rs +++ b/tokio/src/macros/scoped_tls.rs @@ -4,7 +4,6 @@ use std::cell::Cell; use std::marker; /// Set a reference as a thread-local -#[macro_export] macro_rules! scoped_thread_local { ($(#[$attrs:meta])* $vis:vis static $name:ident: $ty:ty) => ( $(#[$attrs])*