mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
Exclude TERM env var by default
This commit is contained in:
+3
-1
@@ -15,8 +15,10 @@ pub struct EnvVars {
|
||||
impl EnvVars {
|
||||
pub(crate) fn init<'mir, 'tcx>(
|
||||
ecx: &mut InterpCx<'mir, 'tcx, Evaluator<'tcx>>,
|
||||
excluded_env_vars: Vec<String>,
|
||||
mut excluded_env_vars: Vec<String>,
|
||||
) {
|
||||
// Exclude TERM var to avoid calls to the file system
|
||||
excluded_env_vars.push("TERM".to_owned());
|
||||
if ecx.machine.communicate {
|
||||
for (name, value) in std::env::vars() {
|
||||
if !excluded_env_vars.contains(&name) {
|
||||
|
||||
Reference in New Issue
Block a user