mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
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.
This commit is contained in:
@@ -4,7 +4,6 @@ use std::cell::Cell;
|
|||||||
use std::marker;
|
use std::marker;
|
||||||
|
|
||||||
/// Set a reference as a thread-local
|
/// Set a reference as a thread-local
|
||||||
#[macro_export]
|
|
||||||
macro_rules! scoped_thread_local {
|
macro_rules! scoped_thread_local {
|
||||||
($(#[$attrs:meta])* $vis:vis static $name:ident: $ty:ty) => (
|
($(#[$attrs:meta])* $vis:vis static $name:ident: $ty:ty) => (
|
||||||
$(#[$attrs])*
|
$(#[$attrs])*
|
||||||
|
|||||||
Reference in New Issue
Block a user