libcore: Fix Windows-only pattern in run.rs. rs=bustage

This commit is contained in:
Patrick Walton 2012-12-07 21:52:39 -08:00
parent 13c7b97248
commit e9e3d02b7d

View File

@ -131,9 +131,9 @@ fn with_envp<T>(env: &Option<~[(~str,~str)]>,
// \0 to terminate. // \0 to terminate.
unsafe { unsafe {
match *env { match *env {
Some(es) if !vec::is_empty(es) => { Some(ref es) if !vec::is_empty(*es) => {
let mut blk : ~[u8] = ~[]; let mut blk : ~[u8] = ~[];
for vec::each(es) |e| { for vec::each(*es) |e| {
let (k,v) = *e; let (k,v) = *e;
let t = fmt!("%s=%s", k, v); let t = fmt!("%s=%s", k, v);
let mut v : ~[u8] = ::cast::reinterpret_cast(&t); let mut v : ~[u8] = ::cast::reinterpret_cast(&t);