From d259f4364738d911128d6e8ad863d0066733a343 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Wed, 20 Jun 2018 00:04:59 +0200 Subject: [PATCH 1/2] Fix doc build on unknown windows target --- src/libstd/sys/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libstd/sys/mod.rs b/src/libstd/sys/mod.rs index 1231898ed7eb..b5bf4044be4d 100644 --- a/src/libstd/sys/mod.rs +++ b/src/libstd/sys/mod.rs @@ -67,6 +67,7 @@ cfg_if! { // (missing things in `libc` which is empty) so just omit everything // with an empty module #[unstable(issue = "0", feature = "std_internals")] + #[allow(missing_docs)] pub mod unix_ext {} } else { // On other platforms like Windows document the bare bones of unix @@ -80,6 +81,7 @@ cfg_if! { cfg_if! { if #[cfg(windows)] { // On windows we'll just be documenting what's already available + #[allow(missing_docs)] pub use self::ext as windows_ext; } else if #[cfg(any(target_os = "cloudabi", target_arch = "wasm32"))] { // On CloudABI and wasm right now the shim below doesn't compile, so From 3c6c18d095b7cdafadffcc7ae3c39b037e4e793d Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 25 Jun 2018 20:38:29 +0200 Subject: [PATCH 2/2] Add missing \[allow(missing_docs)\] --- src/libstd/sys/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libstd/sys/mod.rs b/src/libstd/sys/mod.rs index b5bf4044be4d..c44db3b10722 100644 --- a/src/libstd/sys/mod.rs +++ b/src/libstd/sys/mod.rs @@ -87,6 +87,7 @@ cfg_if! { // On CloudABI and wasm right now the shim below doesn't compile, so // just omit it #[unstable(issue = "0", feature = "std_internals")] + #[allow(missing_docs)] pub mod windows_ext {} } else { // On all other platforms (aka linux/osx/etc) then pull in a "minimal"