We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 046a492 commit 89dfb13Copy full SHA for 89dfb13
plrustc/plrustc/src/main.rs
@@ -54,11 +54,14 @@ fn clear_env() {
54
.map(|(name, _)| name)
55
.filter(|name| {
56
let name = name.to_string_lossy().to_lowercase();
57
- !(name.starts_with("rust") || name.starts_with("plrust"))
+ !(name.starts_with("rust")
58
+ || name.starts_with("plrust")
59
+ || name.starts_with("cargo")
60
+ || name == "path")
61
})
62
.collect::<Vec<_>>();
63
for name in all_var_names {
- std::env::set_var(name, "");
64
+ std::env::remove_var(name);
65
}
66
67
0 commit comments