From 175d84e2b14d152f4459869c6a8187bc7db63200 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Tue, 3 Aug 2021 09:07:38 +0200 Subject: [PATCH] chore: fix doc failure in CI on master (#4020) --- tokio-stream/src/wrappers.rs | 9 --------- tokio/src/macros/cfg.rs | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/tokio-stream/src/wrappers.rs b/tokio-stream/src/wrappers.rs index 8e218f02a..62cabe4f7 100644 --- a/tokio-stream/src/wrappers.rs +++ b/tokio-stream/src/wrappers.rs @@ -1,13 +1,4 @@ //! Wrappers for Tokio types that implement `Stream`. -//! -#![cfg_attr( - unix, - doc = "You are viewing documentation built under unix. To view windows-specific wrappers, change to the `x86_64-pc-windows-msvc` platform." -)] -#![cfg_attr( - windows, - doc = "You are viewing documentation built under windows. To view unix-specific wrappers, change to the `x86_64-unknown-linux-gnu` platform." -)] /// Error types for the wrappers. pub mod errors { diff --git a/tokio/src/macros/cfg.rs b/tokio/src/macros/cfg.rs index dcd2d795a..7c87522d0 100644 --- a/tokio/src/macros/cfg.rs +++ b/tokio/src/macros/cfg.rs @@ -185,7 +185,7 @@ macro_rules! cfg_net_unix { macro_rules! cfg_net_windows { ($($item:item)*) => { $( - #[cfg(all(any(docsrs, windows), feature = "net"))] + #[cfg(all(any(all(doc, docsrs), windows), feature = "net"))] #[cfg_attr(docsrs, doc(cfg(all(windows, feature = "net"))))] $item )*