From 2c247836a5a5dc2210cd75f0098215d93bc89701 Mon Sep 17 00:00:00 2001 From: Alice Ryhl Date: Tue, 3 Aug 2021 08:26:57 +0200 Subject: [PATCH] chore: fix doc failure in CI on master --- 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 8e218f02aa0..62cabe4f7d0 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 dcd2d795acf..7c87522d097 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 )*