Skip to content

Commit 5cab410

Browse files
klutzyalexcrichton
authored andcommitted
---
yaml --- r: 110424 b: refs/heads/try c: 74ae36c h: refs/heads/master v: v3
1 parent 79eba95 commit 5cab410

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: e415c25bcd81dc1f9a5a3d25d9b48ed2d545336b
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c7fac4471201977fdb1c0c0a26c87287e12dc644
5-
refs/heads/try: 696a0051819c424db2d074a2cc57bacae4488053
5+
refs/heads/try: 74ae36ccf215d434697da3e00fa12656aa32d781
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/compiletest/procsrv.rs

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,25 @@ use std::str;
1313
use std::io::process::{ProcessExit, Process, ProcessConfig, ProcessOutput};
1414

1515
#[cfg(target_os = "win32")]
16-
fn target_env(lib_path: &str, prog: &str) -> Vec<(~str,~str)> {
17-
18-
let mut env = os::env();
16+
fn target_env(lib_path: &str, prog: &str) -> Vec<(~str, ~str)> {
17+
let env = os::env();
1918

2019
// Make sure we include the aux directory in the path
2120
assert!(prog.ends_with(".exe"));
2221
let aux_path = prog.slice(0u, prog.len() - 4u).to_owned() + ".libaux";
2322

24-
env = env.map(|pair| {
25-
let (k,v) = (*pair).clone();
26-
if k == ~"PATH" { (~"PATH", v + ";" + lib_path + ";" + aux_path) }
27-
else { (k,v) }
28-
});
23+
let mut new_env: Vec<_> = env.move_iter().map(|(k, v)| {
24+
let new_v = if "PATH" == k {
25+
format!("{};{};{}", v, lib_path, aux_path)
26+
} else {
27+
v
28+
};
29+
(k, new_v)
30+
}).collect();
2931
if prog.ends_with("rustc.exe") {
30-
env.push((~"RUST_THREADS", ~"1"));
32+
new_env.push((~"RUST_THREADS", ~"1"));
3133
}
32-
return env;
34+
return new_env;
3335
}
3436

3537
#[cfg(target_os = "linux")]

branches/try/src/compiletest/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ fn check_expected_errors(expected_errors: Vec<errors::ExpectedError> ,
529529
c
530530
}
531531
} ).collect();
532-
str::from_chars( c )
532+
str::from_chars(c.as_slice())
533533
}
534534
535535
#[cfg(target_os = "win32")]

0 commit comments

Comments
 (0)