Skip to content

Commit da00f7f

Browse files
committed
Actually remove environment variables if the command removes them
1 parent 0adc04c commit da00f7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cargo-miri/bin.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,8 @@ fn phase_rustc(mut args: env::Args, phase: RustcPhase) {
900900
for (key, value) in cmd.get_envs() {
901901
if let Some(value) = value {
902902
envs.insert(key.to_str().unwrap().into(), value.to_str().unwrap().to_owned());
903+
} else {
904+
envs.remove(key.to_str().unwrap());
903905
}
904906
}
905907
for (key, value) in envs {

0 commit comments

Comments
 (0)