File tree Expand file tree Collapse file tree 10 files changed +12
-14
lines changed Expand file tree Collapse file tree 10 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ pub mod memchr;
3232pub mod mutex;
3333pub mod net;
3434pub mod os;
35+ #[ path = "../unix/os_str.rs" ]
36+ pub mod os_str;
3537#[ path = "../unix/path.rs" ]
3638pub mod path;
3739#[ path = "../unsupported/pipe.rs" ]
@@ -47,7 +49,6 @@ pub mod thread_local_key;
4749pub mod time;
4850
4951use crate :: io:: ErrorKind ;
50- pub use crate :: sys_common:: os_str_bytes as os_str;
5152
5253#[ allow( unused_extern_crates) ]
5354pub extern crate hermit_abi as abi;
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ pub mod memchr;
2626pub mod mutex;
2727pub mod net;
2828pub mod os;
29+ #[ path = "../unix/os_str.rs" ]
30+ pub mod os_str;
2931pub mod path;
3032#[ path = "../unsupported/pipe.rs" ]
3133pub mod pipe;
@@ -37,8 +39,6 @@ pub mod thread;
3739pub mod thread_local_key;
3840pub mod time;
3941
40- pub use crate :: sys_common:: os_str_bytes as os_str;
41-
4242// SAFETY: must be called only once during runtime initialization.
4343// NOTE: this is not guaranteed to run, for example when Rust code is called externally.
4444pub unsafe fn init ( argc : isize , argv : * const * const u8 ) {
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ pub mod net;
3030#[ cfg( target_os = "l4re" ) ]
3131pub use self :: l4re:: net;
3232pub mod os;
33+ pub mod os_str;
3334pub mod path;
3435pub mod pipe;
3536pub mod process;
@@ -42,8 +43,6 @@ pub mod thread_local_dtor;
4243pub mod thread_local_key;
4344pub mod time;
4445
45- pub use crate :: sys_common:: os_str_bytes as os_str;
46-
4746// SAFETY: must be called only once during runtime initialization.
4847// NOTE: this is not guaranteed to run, for example when Rust code is called externally.
4948pub unsafe fn init ( argc : isize , argv : * const * const u8 ) {
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ use crate::sys_common::{AsInner, IntoInner};
1313use core:: str:: lossy:: { Utf8Lossy , Utf8LossyChunk } ;
1414
1515#[ cfg( test) ]
16+ #[ path = "../unix/os_str/tests.rs" ]
1617mod tests;
1718
1819#[ derive( Hash ) ]
File renamed without changes.
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ pub mod memchr {
44 pub use core:: slice:: memchr:: { memchr, memrchr} ;
55}
66
7- pub use crate :: sys_common:: os_str_bytes as os_str;
8-
97// This is not necessarily correct. May want to consider making it part of the
108// spec definition?
119use crate :: os:: raw:: c_char;
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ pub mod io;
1111pub mod mutex;
1212pub mod net;
1313pub mod os;
14+ #[ path = "../unix/os_str.rs" ]
15+ pub mod os_str;
1416#[ path = "../unix/path.rs" ]
1517pub mod path;
1618pub mod pipe;
Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ pub mod io;
3232pub mod mutex;
3333pub mod net;
3434pub mod os;
35- pub use crate :: sys_common:: os_str_bytes as os_str;
35+ #[ path = "../unix/os_str.rs" ]
36+ pub mod os_str;
3637#[ path = "../unix/path.rs" ]
3738pub mod path;
3839#[ path = "../unsupported/pipe.rs" ]
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ pub mod io;
3030pub mod net;
3131#[ path = "../unsupported/os.rs" ]
3232pub mod os;
33+ #[ path = "../unix/os_str.rs" ]
34+ pub mod os_str;
3335#[ path = "../unix/path.rs" ]
3436pub mod path;
3537#[ path = "../unsupported/pipe.rs" ]
@@ -45,8 +47,6 @@ pub mod thread_local_key;
4547#[ path = "../unsupported/time.rs" ]
4648pub mod time;
4749
48- pub use crate :: sys_common:: os_str_bytes as os_str;
49-
5050cfg_if:: cfg_if! {
5151 if #[ cfg( target_feature = "atomics" ) ] {
5252 #[ path = "atomics/condvar.rs" ]
Original file line number Diff line number Diff line change @@ -26,10 +26,6 @@ pub mod fs;
2626pub mod io;
2727pub mod memchr;
2828pub mod mutex;
29- // `doc` is required because `sys/mod.rs` imports `unix/ext/mod.rs` on Windows
30- // when generating documentation.
31- #[ cfg( any( doc, not( windows) ) ) ]
32- pub mod os_str_bytes;
3329pub mod process;
3430pub mod remutex;
3531#[ macro_use]
You can’t perform that action at this time.
0 commit comments