From: Bryan Drewery Date: Thu, 22 Mar 2018 16:49:20 +0000 (-0700) Subject: Command::env_saw_path() may be unused on platforms not using posix_spawn() X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=70559c54ce2a493a15f447436e281e16fc55b291;p=rust.git Command::env_saw_path() may be unused on platforms not using posix_spawn() --- diff --git a/src/libstd/sys/unix/process/process_common.rs b/src/libstd/sys/unix/process/process_common.rs index 48255489dd9..b7f30600b8a 100644 --- a/src/libstd/sys/unix/process/process_common.rs +++ b/src/libstd/sys/unix/process/process_common.rs @@ -184,6 +184,7 @@ pub fn capture_env(&mut self) -> Option { let maybe_env = self.env.capture_if_changed(); maybe_env.map(|env| construct_envp(env, &mut self.saw_nul)) } + #[allow(dead_code)] pub fn env_saw_path(&self) -> bool { self.env.have_changed_path() }