diff options
author | Carl Lerche <me@carllerche.com> | 2019-12-01 12:49:38 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-01 12:49:38 -0800 |
commit | 8b60c5386a60be4dacffe71823350040e8ba90fd (patch) | |
tree | 5f030468b5d5a1018f4194ed24c8935d66f20f0c /tokio/src/macros | |
parent | af07f5bee72bc5c93ed1331cdba3a10f9ae7f569 (diff) |
doc: fix documented feature flags for tokio::task (#1876)
Some feature flags are missing and some are duplicated.
Closes #1836
Diffstat (limited to 'tokio/src/macros')
-rw-r--r-- | tokio/src/macros/cfg.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tokio/src/macros/cfg.rs b/tokio/src/macros/cfg.rs index 4aee3b7f..cc93cc8a 100644 --- a/tokio/src/macros/cfg.rs +++ b/tokio/src/macros/cfg.rs @@ -213,6 +213,15 @@ macro_rules! cfg_rt_core { ($($item:item)*) => { $( #[cfg(feature = "rt-core")] + $item + )* + } +} + +macro_rules! doc_rt_core { + ($($item:item)*) => { + $( + #[cfg(feature = "rt-core")] #[cfg_attr(docsrs, doc(cfg(feature = "rt-core")))] $item )* |