Use super::
to refer to WASI-specific names.
This ensures that these names resolve to the right place even when building the WASI support on other platforms for generating the documentation.
This commit is contained in:
parent
9ce567efc2
commit
0208fca342
@ -39,14 +39,14 @@ pub mod io;
|
||||
pub mod prelude {
|
||||
#[doc(no_inline)]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub use crate::sys::ext::ffi::{OsStrExt, OsStringExt};
|
||||
pub use super::ffi::{OsStrExt, OsStringExt};
|
||||
#[doc(no_inline)]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub use crate::sys::ext::fs::FileTypeExt;
|
||||
pub use super::fs::FileTypeExt;
|
||||
#[doc(no_inline)]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub use crate::sys::ext::fs::{DirEntryExt, FileExt, MetadataExt, OpenOptionsExt};
|
||||
pub use super::fs::{DirEntryExt, FileExt, MetadataExt, OpenOptionsExt};
|
||||
#[doc(no_inline)]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub use crate::sys::ext::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
|
||||
pub use super::io::{AsRawFd, FromRawFd, IntoRawFd, RawFd};
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ use crate::os::wasi::ffi::{OsStrExt, OsStringExt};
|
||||
use crate::path::{Path, PathBuf};
|
||||
use crate::ptr;
|
||||
use crate::sync::Arc;
|
||||
use crate::sys::fd::WasiFd;
|
||||
use super::fd::WasiFd;
|
||||
use crate::sys::time::SystemTime;
|
||||
use crate::sys::unsupported;
|
||||
use crate::sys_common::FromInner;
|
||||
|
@ -4,7 +4,7 @@ use crate::convert::TryFrom;
|
||||
use crate::fmt;
|
||||
use crate::io::{self, IoSlice, IoSliceMut};
|
||||
use crate::net::{Ipv4Addr, Ipv6Addr, Shutdown, SocketAddr};
|
||||
use crate::sys::fd::WasiFd;
|
||||
use super::fd::WasiFd;
|
||||
use crate::sys::{unsupported, Void};
|
||||
use crate::sys_common::FromInner;
|
||||
use crate::time::Duration;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
use crate::io::{self, IoSlice, IoSliceMut};
|
||||
use crate::mem::ManuallyDrop;
|
||||
use crate::sys::fd::WasiFd;
|
||||
use super::fd::WasiFd;
|
||||
|
||||
pub struct Stdin;
|
||||
pub struct Stdout;
|
||||
|
Loading…
x
Reference in New Issue
Block a user