Skip to content

Commit 6d49476

Browse files
author
Jorge Aparicio
committed
preemptively fix windows compilation errors
1 parent cb5e429 commit 6d49476

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/libstd/dynamic_lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,9 @@ mod dl {
272272
use ptr;
273273
use result::Result;
274274
use result::Result::{Ok, Err};
275+
#[cfg(stage0)]
275276
use slice::SliceExt;
277+
#[cfg(stage0)]
276278
use str::StrExt;
277279
use str;
278280
use string::String;

src/libstd/sys/windows/process2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ impl Process {
128128
use env::split_paths;
129129
use mem;
130130
use iter::IteratorExt;
131+
#[cfg(stage0)]
131132
use str::StrExt;
132133

133134
// To have the spawning semantics of unix/windows stay the same, we need to

0 commit comments

Comments
 (0)