From 89544e900125aed4899706c78e8bbce5cb5f1023 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 1 Feb 2022 14:38:23 -0800 Subject: [PATCH] Fix errors. --- library/std/src/os/fd/raw.rs | 4 ++-- library/std/src/os/windows/io/raw.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/std/src/os/fd/raw.rs b/library/std/src/os/fd/raw.rs index 192ada4a255..bc3007da86a 100644 --- a/library/std/src/os/fd/raw.rs +++ b/library/std/src/os/fd/raw.rs @@ -7,9 +7,9 @@ use crate::os::raw; #[cfg(unix)] use crate::os::unix::io::OwnedFd; -#[all(cfg(doc), unix)] +#[cfg(all(doc, unix))] use crate::os::unix::io::{AsFd, FromFd, IntoFd}; -#[all(cfg(doc), target_os = "wasi")] +#[cfg(all(doc, target_os = "wasi"))] use crate::os::unix::io::{AsFd, FromFd, IntoFd}; #[cfg(target_os = "wasi")] use crate::os::wasi::io::OwnedFd; diff --git a/library/std/src/os/windows/io/raw.rs b/library/std/src/os/windows/io/raw.rs index 6ecffcb8a17..285802c6a9e 100644 --- a/library/std/src/os/windows/io/raw.rs +++ b/library/std/src/os/windows/io/raw.rs @@ -5,7 +5,7 @@ use crate::fs; use crate::io; use crate::net; -#[all(cfg(doc), unix)] +#[cfg(doc)] use crate::os::windows::io::{AsHandle, AsSocket, FromHandle, FromSocket, IntoHandle, IntoSocket}; use crate::os::windows::io::{OwnedHandle, OwnedSocket}; use crate::os::windows::raw;