From 6ef7ee36c2103113d572a1ff6e8de68809639649 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 1 Feb 2022 14:37:15 -0800 Subject: [PATCH] Fix unresolved doc links. --- library/std/src/os/fd/raw.rs | 4 ++++ library/std/src/os/windows/io/raw.rs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/library/std/src/os/fd/raw.rs b/library/std/src/os/fd/raw.rs index 4af1c9bd8d7..192ada4a255 100644 --- a/library/std/src/os/fd/raw.rs +++ b/library/std/src/os/fd/raw.rs @@ -7,6 +7,10 @@ use crate::io; use crate::os::raw; #[cfg(unix)] use crate::os::unix::io::OwnedFd; +#[all(cfg(doc), unix)] +use crate::os::unix::io::{AsFd, FromFd, IntoFd}; +#[all(cfg(doc), target_os = "wasi")] +use crate::os::unix::io::{AsFd, FromFd, IntoFd}; #[cfg(target_os = "wasi")] use crate::os::wasi::io::OwnedFd; use crate::sys_common::{AsInner, IntoInner}; diff --git a/library/std/src/os/windows/io/raw.rs b/library/std/src/os/windows/io/raw.rs index 240d14236e5..6ecffcb8a17 100644 --- a/library/std/src/os/windows/io/raw.rs +++ b/library/std/src/os/windows/io/raw.rs @@ -5,6 +5,8 @@ use crate::fs; use crate::io; use crate::net; +#[all(cfg(doc), unix)] +use crate::os::windows::io::{AsHandle, AsSocket, FromHandle, FromSocket, IntoHandle, IntoSocket}; use crate::os::windows::io::{OwnedHandle, OwnedSocket}; use crate::os::windows::raw; use crate::sys;