Skip to content

Commit f59db31

Browse files
committed
No longer remove environment variables in real_rustc_wrapper
1 parent ba575f2 commit f59db31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testsuite/rustup.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ fn real_rustc_wrapper(bin_dir: &Path, message: &str) -> PathBuf {
6464
".env(\"RUSTUP_TOOLCHAIN\", \"{}\")",
6565
t.into_string().unwrap()
6666
),
67-
None => format!(".env_remove(\"RUSTUP_TOOLCHAIN\")"),
67+
None => String::new(),
6868
};
6969
let mut env = vec![("CARGO_RUSTUP_TEST_real_rustc", real_rustc)];
7070
let rustup_home_setup = match std::env::var_os("RUSTUP_HOME") {
7171
Some(h) => {
7272
env.push(("CARGO_RUSTUP_TEST_RUSTUP_HOME", h.into()));
7373
format!(".env(\"RUSTUP_HOME\", env!(\"CARGO_RUSTUP_TEST_RUSTUP_HOME\"))")
7474
}
75-
None => format!(".env_remove(\"RUSTUP_HOME\")"),
75+
None => String::new(),
7676
};
7777
make_exe(
7878
bin_dir,

0 commit comments

Comments
 (0)