diff options
author | bors <bors@rust-lang.org> | 2020-07-21 06:55:17 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2020-07-21 06:55:17 +0000 |
commit | 8ad7bc3f428300aee6764f6e23527e19eb235e81 (patch) | |
tree | 223638727f7bc3658ed087d308f5e5508092958f | |
parent | b52522ade1f6979a35b24087dadcf5ba5c981cbe (diff) | |
parent | 83bd3d3975bd56e0bd959b5df8129e4ee21aeca3 (diff) | |
download | rust-8ad7bc3f428300aee6764f6e23527e19eb235e81.tar.gz |
Auto merge of #74075 - sunfishcode:wasi-prelude-rawfd, r=alexcrichton
Add `RawFd` to WASI's `std::os::wasi::prelude`.
Add `RawFd` to WASI's `std::os::wasi::prelude`, making it consistent
with all other platforms which also have `AsRawFd`, `FromRawFd`, and
`IntoRawFd` in their respective preludes.
-rw-r--r-- | src/libstd/sys/wasi/ext/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/wasi/ext/mod.rs b/src/libstd/sys/wasi/ext/mod.rs index 5f8b1cbfa0b..58c8c46c969 100644 --- a/src/libstd/sys/wasi/ext/mod.rs +++ b/src/libstd/sys/wasi/ext/mod.rs @@ -18,5 +18,5 @@ pub mod prelude { pub use crate::sys::ext::fs::{DirEntryExt, FileExt, MetadataExt, OpenOptionsExt}; #[doc(no_inline)] #[stable(feature = "rust1", since = "1.0.0")] - pub use crate::sys::ext::io::{AsRawFd, FromRawFd, IntoRawFd}; + pub use crate::sys::ext::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd}; } |