Skip to content

Commit 3d44d3c

Browse files
committed
Simplify os_str_bytes cfg expression.
1 parent 0eb293d commit 3d44d3c

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/libstd/sys_common/mod.rs

+3-8
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,9 @@ pub mod condvar;
5151
pub mod fs;
5252
pub mod io;
5353
pub mod mutex;
54-
#[cfg(any(doc, // see `mod os`, docs are generated for multiple platforms
55-
unix,
56-
target_os = "redox",
57-
target_os = "cloudabi",
58-
target_os = "hermit",
59-
target_arch = "wasm32",
60-
feature = "restricted-std",
61-
all(target_vendor = "fortanix", target_env = "sgx")))]
54+
// `doc` is required because `sys/mod.rs` imports `unix/ext/mod.rs` on Windows
55+
// when generating documentation.
56+
#[cfg(any(doc, not(windows)))]
6257
pub mod os_str_bytes;
6358
pub mod poison;
6459
pub mod process;

0 commit comments

Comments
 (0)