Skip to content

Commit 7024bff

Browse files
committed
Move std::sys::hermit::ext to std::os::hermit
1 parent 0e2cd33 commit 7024bff

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

library/std/src/sys/hermit/ext/mod.rs renamed to library/std/src/os/hermit/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![stable(feature = "rust1", since = "1.0.0")]
2-
#![allow(missing_docs)]
32

43
pub mod ffi;
54

library/std/src/os/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ cfg_if::cfg_if! {
4848
#[cfg(all(target_vendor = "fortanix", target_env = "sgx"))]
4949
pub mod fortanix_sgx;
5050

51-
#[cfg(any(unix, target_os = "hermit"))]
51+
#[cfg(target_os = "hermit")]
52+
mod hermit;
53+
#[cfg(target_os = "hermit")]
54+
pub use hermit as unix;
55+
56+
#[cfg(unix)]
5257
#[stable(feature = "rust1", since = "1.0.0")]
5358
pub use crate::sys::ext as unix;
5459
#[cfg(target_os = "android")]

library/std/src/sys/hermit/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ pub mod args;
2424
pub mod cmath;
2525
pub mod condvar;
2626
pub mod env;
27-
pub mod ext;
2827
pub mod fd;
2928
pub mod fs;
3029
#[path = "../unsupported/io.rs"]

0 commit comments

Comments
 (0)