diff options
author | Carl Lerche <me@carllerche.com> | 2020-04-30 14:32:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 14:32:47 -0700 |
commit | fa9743f0d4bff0da7790c2ad9b4c00f3efe17dc8 (patch) | |
tree | d6304cfbce40e72f0f9ad64d1d76518076276922 /tokio/src/macros | |
parent | 7a89d6651348c510546ad238a2ae74032de19de8 (diff) |
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.
Diffstat (limited to 'tokio/src/macros')
-rw-r--r-- | tokio/src/macros/scoped_tls.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tokio/src/macros/scoped_tls.rs b/tokio/src/macros/scoped_tls.rs index 666f382b..886f9d44 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])* |