]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/sys_common/mod.rs
Unify OsString/OsStr for byte-based implementations
[rust.git] / src / libstd / sys_common / mod.rs
index ee3916b35f9c90756dd4878d9c6b780c85a0b871..883ab34f07c5832513d5a5c5753baac903ee0247 100644 (file)
 #![allow(missing_docs)]
 #![allow(missing_debug_implementations)]
 
-use sync::Once;
-use sys;
+use crate::sync::Once;
+use crate::sys;
 
 macro_rules! rtabort {
-    ($($t:tt)*) => (::sys_common::util::abort(format_args!($($t)*)))
+    ($($t:tt)*) => (crate::sys_common::util::abort(format_args!($($t)*)))
 }
 
 macro_rules! rtassert {
@@ -35,6 +35,13 @@ macro_rules! rtassert {
 pub mod condvar;
 pub mod io;
 pub mod mutex;
+#[cfg(any(rustdoc, // see `mod os`, docs are generated for multiple platforms
+          unix,
+          target_os = "redox",
+          target_os = "cloudabi",
+          target_arch = "wasm32",
+          all(target_vendor = "fortanix", target_env = "sgx")))]
+pub mod os_str_bytes;
 pub mod poison;
 pub mod remutex;
 pub mod rwlock;
@@ -51,8 +58,8 @@ macro_rules! rtassert {
                  target_os = "l4re",
                  target_os = "redox",
                  all(target_arch = "wasm32", not(target_os = "emscripten")),
-                 target_env = "sgx"))] {
-        pub use sys::net;
+                 all(target_vendor = "fortanix", target_env = "sgx")))] {
+        pub use crate::sys::net;
     } else {
         pub mod net;
     }