From 738f7360664503e497d609cc8224f0602f31b07e Mon Sep 17 00:00:00 2001 From: Christiaan Dirkx Date: Wed, 3 Mar 2021 01:14:17 +0100 Subject: [PATCH] Remove unnecessary conditional `cfg(target_os)` for `redox` and `vxworks` `redox` and `vxworks` are part of target_family `unix`, thus `cfg(unix)` already implies `cfg(target_os="redox")` and `(target_os="vxworks")` --- library/std/src/os/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/std/src/os/mod.rs b/library/std/src/os/mod.rs index 500e8267cf821..6ca3b8fb22ef9 100644 --- a/library/std/src/os/mod.rs +++ b/library/std/src/os/mod.rs @@ -28,7 +28,7 @@ pub use crate::sys::wasi_ext as wasi; // If we're not documenting libstd then we just expose the main modules as we otherwise would. #[cfg(not(doc))] -#[cfg(any(target_os = "redox", unix, target_os = "vxworks", target_os = "hermit"))] +#[cfg(any(unix, target_os = "hermit"))] #[stable(feature = "rust1", since = "1.0.0")] pub use crate::sys::ext as unix;