]> git.lizzy.rs Git - rust.git/commitdiff
preemptively fix windows compilation errors
authorJorge Aparicio <japaricious@gmail.com>
Thu, 12 Mar 2015 05:25:33 +0000 (00:25 -0500)
committerJorge Aparicio <japaricious@gmail.com>
Tue, 17 Mar 2015 02:57:42 +0000 (21:57 -0500)
src/libstd/dynamic_lib.rs
src/libstd/sys/windows/process2.rs

index 90373441edcad0e2ccfdf986773a5c6f45ef230e..d06b027adf65c6b0d8c9cc29e4cb3a37c3ffac98 100644 (file)
@@ -272,7 +272,9 @@ mod dl {
     use ptr;
     use result::Result;
     use result::Result::{Ok, Err};
+    #[cfg(stage0)]
     use slice::SliceExt;
+    #[cfg(stage0)]
     use str::StrExt;
     use str;
     use string::String;
index 4fbaabc9ecc2b17bc00778f7ec812dbcd787e68d..e3cf5da59f0ee34f9a75c119948aa8d215cccee0 100644 (file)
@@ -128,6 +128,7 @@ pub fn spawn(cfg: &Command,
         use env::split_paths;
         use mem;
         use iter::IteratorExt;
+        #[cfg(stage0)]
         use str::StrExt;
 
         // To have the spawning semantics of unix/windows stay the same, we need to