diff options
author | Carl Lerche <me@carllerche.com> | 2020-05-03 12:35:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-03 12:35:47 -0700 |
commit | 264ae3bdb22004609de45b67e2890081bb47e5b2 (patch) | |
tree | c9f6005fef1c68de7331a98be3d18e2c112400e6 /tokio/src/macros | |
parent | 187af2e6a323be4193c82ad95f9aa32d2ae16869 (diff) |
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.
Diffstat (limited to 'tokio/src/macros')
-rw-r--r-- | tokio/src/macros/cfg.rs | 10 |
1 files changed, 10 insertions, 0 deletions
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 + )* + } +} |