File tree 10 files changed +12
-14
lines changed
10 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ pub mod memchr;
32
32
pub mod mutex;
33
33
pub mod net;
34
34
pub mod os;
35
+ #[ path = "../unix/os_str.rs" ]
36
+ pub mod os_str;
35
37
#[ path = "../unix/path.rs" ]
36
38
pub mod path;
37
39
#[ path = "../unsupported/pipe.rs" ]
@@ -47,7 +49,6 @@ pub mod thread_local_key;
47
49
pub mod time;
48
50
49
51
use crate :: io:: ErrorKind ;
50
- pub use crate :: sys_common:: os_str_bytes as os_str;
51
52
52
53
#[ allow( unused_extern_crates) ]
53
54
pub extern crate hermit_abi as abi;
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ pub mod memchr;
26
26
pub mod mutex;
27
27
pub mod net;
28
28
pub mod os;
29
+ #[ path = "../unix/os_str.rs" ]
30
+ pub mod os_str;
29
31
pub mod path;
30
32
#[ path = "../unsupported/pipe.rs" ]
31
33
pub mod pipe;
@@ -37,8 +39,6 @@ pub mod thread;
37
39
pub mod thread_local_key;
38
40
pub mod time;
39
41
40
- pub use crate :: sys_common:: os_str_bytes as os_str;
41
-
42
42
// SAFETY: must be called only once during runtime initialization.
43
43
// NOTE: this is not guaranteed to run, for example when Rust code is called externally.
44
44
pub 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;
30
30
#[ cfg( target_os = "l4re" ) ]
31
31
pub use self :: l4re:: net;
32
32
pub mod os;
33
+ pub mod os_str;
33
34
pub mod path;
34
35
pub mod pipe;
35
36
pub mod process;
@@ -42,8 +43,6 @@ pub mod thread_local_dtor;
42
43
pub mod thread_local_key;
43
44
pub mod time;
44
45
45
- pub use crate :: sys_common:: os_str_bytes as os_str;
46
-
47
46
// SAFETY: must be called only once during runtime initialization.
48
47
// NOTE: this is not guaranteed to run, for example when Rust code is called externally.
49
48
pub 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};
13
13
use core:: str:: lossy:: { Utf8Lossy , Utf8LossyChunk } ;
14
14
15
15
#[ cfg( test) ]
16
+ #[ path = "../unix/os_str/tests.rs" ]
16
17
mod tests;
17
18
18
19
#[ derive( Hash ) ]
File renamed without changes.
Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ pub mod memchr {
4
4
pub use core:: slice:: memchr:: { memchr, memrchr} ;
5
5
}
6
6
7
- pub use crate :: sys_common:: os_str_bytes as os_str;
8
-
9
7
// This is not necessarily correct. May want to consider making it part of the
10
8
// spec definition?
11
9
use crate :: os:: raw:: c_char;
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ pub mod io;
11
11
pub mod mutex;
12
12
pub mod net;
13
13
pub mod os;
14
+ #[ path = "../unix/os_str.rs" ]
15
+ pub mod os_str;
14
16
#[ path = "../unix/path.rs" ]
15
17
pub mod path;
16
18
pub mod pipe;
Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ pub mod io;
32
32
pub mod mutex;
33
33
pub mod net;
34
34
pub 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;
36
37
#[ path = "../unix/path.rs" ]
37
38
pub mod path;
38
39
#[ path = "../unsupported/pipe.rs" ]
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ pub mod io;
30
30
pub mod net;
31
31
#[ path = "../unsupported/os.rs" ]
32
32
pub mod os;
33
+ #[ path = "../unix/os_str.rs" ]
34
+ pub mod os_str;
33
35
#[ path = "../unix/path.rs" ]
34
36
pub mod path;
35
37
#[ path = "../unsupported/pipe.rs" ]
@@ -45,8 +47,6 @@ pub mod thread_local_key;
45
47
#[ path = "../unsupported/time.rs" ]
46
48
pub mod time;
47
49
48
- pub use crate :: sys_common:: os_str_bytes as os_str;
49
-
50
50
cfg_if:: cfg_if! {
51
51
if #[ cfg( target_feature = "atomics" ) ] {
52
52
#[ path = "atomics/condvar.rs" ]
Original file line number Diff line number Diff line change @@ -26,10 +26,6 @@ pub mod fs;
26
26
pub mod io;
27
27
pub mod memchr;
28
28
pub 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;
33
29
pub mod process;
34
30
pub mod remutex;
35
31
#[ macro_use]
You can’t perform that action at this time.
0 commit comments