about summary refs log tree commit diff
path: root/library/std/src/sys/sgx/mod.rs
diff options
context:
space:
mode:
authorChristiaan Dirkx <christiaan@dirkx.email>2021-06-21 11:44:59 +0200
committerChristiaan Dirkx <christiaan@dirkx.email>2021-07-03 03:01:36 +0200
commitc93cb40b90b5f862bf448136cbe608f43ae0f62f (patch)
tree5dc4e6408de2db97d863c62ee9298b24fa0bde53 /library/std/src/sys/sgx/mod.rs
parent798baebde1fe77e5a660490ec64e727a5d79970d (diff)
downloadrust-c93cb40b90b5f862bf448136cbe608f43ae0f62f.tar.gz
rust-c93cb40b90b5f862bf448136cbe608f43ae0f62f.zip
Move `os_str_bytes` to `sys::unix` and reuse it on other platforms.
Diffstat (limited to 'library/std/src/sys/sgx/mod.rs')
-rw-r--r--library/std/src/sys/sgx/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/sgx/mod.rs b/library/std/src/sys/sgx/mod.rs
index fce6b420732..a2a763c2b4e 100644
--- a/library/std/src/sys/sgx/mod.rs
+++ b/library/std/src/sys/sgx/mod.rs
@@ -26,6 +26,8 @@ pub mod memchr;
 pub mod mutex;
 pub mod net;
 pub mod os;
+#[path = "../unix/os_str.rs"]
+pub mod os_str;
 pub mod path;
 #[path = "../unsupported/pipe.rs"]
 pub mod pipe;
@@ -37,8 +39,6 @@ pub mod thread;
 pub mod thread_local_key;
 pub mod time;
 
-pub use crate::sys_common::os_str_bytes as os_str;
-
 // SAFETY: must be called only once during runtime initialization.
 // NOTE: this is not guaranteed to run, for example when Rust code is called externally.
 pub unsafe fn init(argc: isize, argv: *const *const u8) {