From 264ae3bdb22004609de45b67e2890081bb47e5b2 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Sun, 3 May 2020 12:35:47 -0700 Subject: sync: move CancellationToken tests (#2477) In preparation of work on `CancellationToken` internals, the tests are moved into `tests/` and are updated to not depend on internals. --- tokio/src/macros/cfg.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tokio/src/macros') diff --git a/tokio/src/macros/cfg.rs b/tokio/src/macros/cfg.rs index 85f95cbd..618b8f66 100644 --- a/tokio/src/macros/cfg.rs +++ b/tokio/src/macros/cfg.rs @@ -353,3 +353,13 @@ macro_rules! cfg_uds { )* } } + +macro_rules! cfg_unstable { + ($($item:item)*) => { + $( + #[cfg(tokio_unstable)] + #[cfg_attr(docsrs, doc(cfg(tokio_unstable)))] + $item + )* + } +} -- cgit v1.2.3