diff options
| author | Christiaan Dirkx <christiaan@dirkx.email> | 2021-03-04 14:14:44 +0100 |
|---|---|---|
| committer | Christiaan Dirkx <christiaan@dirkx.email> | 2021-05-03 16:56:20 +0200 |
| commit | 7024bfffbdd1fb3dafa3f263f6d10fd2aed2ff2d (patch) | |
| tree | 75237bc9e079811d21c3bde8c450ffbc251673e9 /library/std/src/os/mod.rs | |
| parent | 0e2cd33db84a4787391989c69ed3ce70ce8c07ec (diff) | |
| download | rust-7024bfffbdd1fb3dafa3f263f6d10fd2aed2ff2d.tar.gz rust-7024bfffbdd1fb3dafa3f263f6d10fd2aed2ff2d.zip | |
Move `std::sys::hermit::ext` to `std::os::hermit`
Diffstat (limited to 'library/std/src/os/mod.rs')
| -rw-r--r-- | library/std/src/os/mod.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/library/std/src/os/mod.rs b/library/std/src/os/mod.rs index 7e333e2b778..fc684f0912f 100644 --- a/library/std/src/os/mod.rs +++ b/library/std/src/os/mod.rs @@ -48,7 +48,12 @@ cfg_if::cfg_if! { #[cfg(all(target_vendor = "fortanix", target_env = "sgx"))] pub mod fortanix_sgx; - #[cfg(any(unix, target_os = "hermit"))] + #[cfg(target_os = "hermit")] + mod hermit; + #[cfg(target_os = "hermit")] + pub use hermit as unix; + + #[cfg(unix)] #[stable(feature = "rust1", since = "1.0.0")] pub use crate::sys::ext as unix; #[cfg(target_os = "android")] |
