diff options
| author | Dominik Stolz <d.stolz@tum.de> | 2021-07-01 16:50:14 +0200 |
|---|---|---|
| committer | Dominik Stolz <d.stolz@tum.de> | 2021-08-01 09:45:00 +0200 |
| commit | 2a4d012103999528ea7712bd3bb93a5ed7a6824e (patch) | |
| tree | 3d75aa8ec85b1bd735058078a9016deb4ef15616 /library/std/src | |
| parent | 12fbabd27f700a59d0e7031f0839b220c3514bcb (diff) | |
| download | rust-2a4d012103999528ea7712bd3bb93a5ed7a6824e.tar.gz rust-2a4d012103999528ea7712bd3bb93a5ed7a6824e.zip | |
Add dummy FileDesc struct for doc target
Diffstat (limited to 'library/std/src')
| -rw-r--r-- | library/std/src/os/linux/process.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/std/src/os/linux/process.rs b/library/std/src/os/linux/process.rs index 17b9ae82bce..91547b8f916 100644 --- a/library/std/src/os/linux/process.rs +++ b/library/std/src/os/linux/process.rs @@ -5,9 +5,13 @@ use crate::io::Result; use crate::os::unix::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; use crate::process; +#[cfg(not(doc))] use crate::sys::fd::FileDesc; use crate::sys_common::{AsInner, AsInnerMut, FromInner, IntoInner}; +#[cfg(doc)] +struct FileDesc; + /// This type represents a file descriptor that refers to a process. /// /// A `PidFd` can be obtained by setting the corresponding option on [`Command`] |
