From 6d49476e7bda8bff039ae1bff95aaf3ac22ebbc8 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Thu, 12 Mar 2015 00:25:33 -0500 Subject: [PATCH] preemptively fix windows compilation errors --- src/libstd/dynamic_lib.rs | 2 ++ src/libstd/sys/windows/process2.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/libstd/dynamic_lib.rs b/src/libstd/dynamic_lib.rs index 90373441edcad..d06b027adf65c 100644 --- a/src/libstd/dynamic_lib.rs +++ b/src/libstd/dynamic_lib.rs @@ -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; diff --git a/src/libstd/sys/windows/process2.rs b/src/libstd/sys/windows/process2.rs index 4fbaabc9ecc2b..e3cf5da59f0ee 100644 --- a/src/libstd/sys/windows/process2.rs +++ b/src/libstd/sys/windows/process2.rs @@ -128,6 +128,7 @@ impl Process { 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