Skip to content

Commit 54cd5e1

Browse files
committed
~strify win32-specific fns
1 parent 3ef7ff8 commit 54cd5e1

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/compiletest/procsrv.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@ import libc::{c_int, pid_t};
55
export run;
66

77
#[cfg(target_os = "win32")]
8-
fn target_env(lib_path: str, prog: str) -> ~[(str,str)] {
8+
fn target_env(lib_path: ~str, prog: ~str) -> ~[(~str,~str)] {
99

1010
let mut env = os::env();
1111

1212
// Make sure we include the aux directory in the path
13-
assert prog.ends_with(".exe");
14-
let aux_path = prog.slice(0u, prog.len() - 4u) + ".libaux";
13+
assert prog.ends_with(~".exe");
14+
let aux_path = prog.slice(0u, prog.len() - 4u) + ~".libaux";
1515

1616
env = do vec::map(env) |pair| {
1717
let (k,v) = pair;
18-
if k == "PATH" { ("PATH", v + ";" + lib_path + ";" + aux_path) }
18+
if k == ~"PATH" { (~"PATH", v + ~";" + lib_path + ~";" + aux_path) }
1919
else { (k,v) }
2020
};
21-
if str::ends_with(prog, "rustc.exe") {
22-
vec::push(env, ("RUST_THREADS", "1"));
21+
if str::ends_with(prog, ~"rustc.exe") {
22+
vec::push(env, (~"RUST_THREADS", ~"1"));
2323
}
2424
ret env;
2525
}

src/compiletest/runtest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,9 +434,9 @@ fn make_cmdline(_libpath: ~str, prog: ~str, args: ~[~str]) -> ~str {
434434
}
435435
436436
#[cfg(target_os = "win32")]
437-
fn make_cmdline(libpath: str, prog: str, args: ~[str]) -> str {
437+
fn make_cmdline(libpath: ~str, prog: ~str, args: ~[~str]) -> ~str {
438438
#fmt["%s %s %s", lib_path_cmd_prefix(libpath), prog,
439-
str::connect(args, " ")]
439+
str::connect(args, ~" ")]
440440
}
441441
442442
// Build the LD_LIBRARY_PATH variable as it would be seen on the command line

src/compiletest/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn lib_path_env_var() -> ~str { ~"PATH" }
3131
fn path_div() -> ~str { ~":" }
3232

3333
#[cfg(target_os = "win32")]
34-
fn path_div() -> str { ~";" }
34+
fn path_div() -> ~str { ~";" }
3535

3636
fn logv(config: config, s: ~str) {
3737
log(debug, s);

0 commit comments

Comments
 (0)