@@ -29,25 +29,10 @@ cfg_if! {
29
29
30
30
#[ doc( cfg( target_os = "linux" ) ) ]
31
31
pub mod linux;
32
-
33
32
} else {
34
33
35
- // If we're not documenting libstd then we just expose everything as we
36
- // otherwise would.
37
-
38
- #[ cfg( target_os = "android" ) ] pub mod android;
39
- #[ cfg( target_os = "bitrig" ) ] pub mod bitrig;
40
- #[ cfg( target_os = "dragonfly" ) ] pub mod dragonfly;
41
- #[ cfg( target_os = "freebsd" ) ] pub mod freebsd;
42
- #[ cfg( target_os = "haiku" ) ] pub mod haiku;
43
- #[ cfg( target_os = "ios" ) ] pub mod ios;
44
- #[ cfg( target_os = "macos" ) ] pub mod macos;
45
- #[ cfg( target_os = "netbsd" ) ] pub mod netbsd;
46
- #[ cfg( target_os = "openbsd" ) ] pub mod openbsd;
47
- #[ cfg( target_os = "solaris" ) ] pub mod solaris;
48
- #[ cfg( target_os = "emscripten" ) ] pub mod emscripten;
49
- #[ cfg( target_os = "fuchsia" ) ] pub mod fuchsia;
50
- #[ cfg( target_os = "hermit" ) ] pub mod hermit;
34
+ // If we're not documenting libstd then we just expose the main modules
35
+ // as we otherwise would.
51
36
52
37
#[ cfg( any( target_os = "redox" , unix) ) ]
53
38
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
@@ -63,4 +48,18 @@ cfg_if! {
63
48
}
64
49
}
65
50
51
+ #[ cfg( target_os = "android" ) ] pub mod android;
52
+ #[ cfg( target_os = "bitrig" ) ] pub mod bitrig;
53
+ #[ cfg( target_os = "dragonfly" ) ] pub mod dragonfly;
54
+ #[ cfg( target_os = "freebsd" ) ] pub mod freebsd;
55
+ #[ cfg( target_os = "haiku" ) ] pub mod haiku;
56
+ #[ cfg( target_os = "ios" ) ] pub mod ios;
57
+ #[ cfg( target_os = "macos" ) ] pub mod macos;
58
+ #[ cfg( target_os = "netbsd" ) ] pub mod netbsd;
59
+ #[ cfg( target_os = "openbsd" ) ] pub mod openbsd;
60
+ #[ cfg( target_os = "solaris" ) ] pub mod solaris;
61
+ #[ cfg( target_os = "emscripten" ) ] pub mod emscripten;
62
+ #[ cfg( target_os = "fuchsia" ) ] pub mod fuchsia;
63
+ #[ cfg( target_os = "hermit" ) ] pub mod hermit;
64
+
66
65
pub mod raw;
0 commit comments