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:
Carl Lerche
2020-04-30 14:32:47 -07:00
committed by GitHub
parent 7a89d66513
commit fa9743f0d4
-1
View File
@@ -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])*