Skip to content

Commit fa9743f

Browse files
authored
macros: scoped_thread_local should be private (tokio-rs#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.
1 parent 7a89d66 commit fa9743f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tokio/src/macros/scoped_tls.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use std::cell::Cell;
44
use std::marker;
55

66
/// Set a reference as a thread-local
7-
#[macro_export]
87
macro_rules! scoped_thread_local {
98
($(#[$attrs:meta])* $vis:vis static $name:ident: $ty:ty) => (
109
$(#[$attrs])*

0 commit comments

Comments
 (0)