]> git.lizzy.rs Git - rust.git/commitdiff
Fix mod declarations on untested platforms
authorBrian Anderson <banderson@mozilla.com>
Mon, 3 Oct 2016 22:29:03 +0000 (22:29 +0000)
committerBrian Anderson <banderson@mozilla.com>
Mon, 3 Oct 2016 22:29:03 +0000 (22:29 +0000)
src/libstd/sys/unix/env.rs

index 92c4899b3d52a384dab51174d8bc8bae4d21cd72..66ff2fec8327e6292fcc35e5def581f180fae563 100644 (file)
@@ -140,7 +140,7 @@ pub mod os {
 }
 
 #[cfg(target_os = "haiku")]
-mod os {
+pub mod os {
     pub const FAMILY: &'static str = "unix";
     pub const OS: &'static str = "haiku";
     pub const DLL_PREFIX: &'static str = "lib";
@@ -151,7 +151,7 @@ mod os {
 }
 
 #[cfg(all(target_os = "emscripten", target_arch = "asmjs"))]
-mod os {
+pub mod os {
     pub const FAMILY: &'static str = "unix";
     pub const OS: &'static str = "emscripten";
     pub const DLL_PREFIX: &'static str = "lib";
@@ -162,7 +162,7 @@ mod os {
 }
 
 #[cfg(all(target_os = "emscripten", target_arch = "wasm32"))]
-mod os {
+pub mod os {
     pub const FAMILY: &'static str = "unix";
     pub const OS: &'static str = "emscripten";
     pub const DLL_PREFIX: &'static str = "lib";