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 6943d0c commit 046a492Copy full SHA for 046a492
plrustc/plrustc/src/main.rs
@@ -52,9 +52,13 @@ impl Callbacks for PlrustcCallbacks {
52
fn clear_env() {
53
let all_var_names = std::env::vars_os()
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"))
58
+ })
59
.collect::<Vec<_>>();
60
for name in all_var_names {
- std::env::remove_var(name);
61
+ std::env::set_var(name, "");
62
}
63
64
0 commit comments