diff options
| author | bors <bors@rust-lang.org> | 2019-09-06 07:37:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-09-06 07:37:41 +0000 |
| commit | 1fb3c4ec7ca37d33bd1e68cce669d171c2752615 (patch) | |
| tree | 48ea5150538790309c68b9f515c4e958724a82a5 /src/libstd/sys/cloudabi | |
| parent | 6b5f9b2e973e438fc1726a2d164d046acd80b170 (diff) | |
| parent | 61fcd057d2524175a21e2eb1d49c1d4aec29a0be (diff) | |
| download | rust-1fb3c4ec7ca37d33bd1e68cce669d171c2752615.tar.gz rust-1fb3c4ec7ca37d33bd1e68cce669d171c2752615.zip | |
Auto merge of #64209 - Centril:rollup-x9kvjb7, r=Centril
Rollup of 10 pull requests Successful merges: - #63676 (Use wasi crate for Core API) - #64094 (Improve searching in rustdoc and add tests) - #64111 (or-patterns: Uniformly use `PatKind::Or` in AST & Fix/Cleanup resolve) - #64156 (Assume non-git LLVM is fresh if the stamp file exists) - #64161 (Point at variant on pattern field count mismatch) - #64174 (Add missing code examples on Iterator trait) - #64175 (Fix invalid span generation when it should be div) - #64186 (std: Improve downstream codegen in `Command::env`) - #64190 (fill metadata in rustc_lexer's Cargo.toml) - #64198 (Add Fuchsia to actually_monotonic) Failed merges: r? @ghost
Diffstat (limited to 'src/libstd/sys/cloudabi')
| -rw-r--r-- | src/libstd/sys/cloudabi/shims/process.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libstd/sys/cloudabi/shims/process.rs b/src/libstd/sys/cloudabi/shims/process.rs index e719b362cbf..03a59d6d7c8 100644 --- a/src/libstd/sys/cloudabi/shims/process.rs +++ b/src/libstd/sys/cloudabi/shims/process.rs @@ -4,14 +4,16 @@ use crate::io; use crate::sys::fs::File; use crate::sys::pipe::AnonPipe; use crate::sys::{unsupported, Void}; -use crate::sys_common::process::{CommandEnv, DefaultEnvKey}; +use crate::sys_common::process::CommandEnv; + +pub use crate::ffi::OsString as EnvKey; //////////////////////////////////////////////////////////////////////////////// // Command //////////////////////////////////////////////////////////////////////////////// pub struct Command { - env: CommandEnv<DefaultEnvKey>, + env: CommandEnv, } // passed back to std::process with the pipes connected to the child, if any @@ -37,7 +39,7 @@ impl Command { pub fn arg(&mut self, _arg: &OsStr) {} - pub fn env_mut(&mut self) -> &mut CommandEnv<DefaultEnvKey> { + pub fn env_mut(&mut self) -> &mut CommandEnv { &mut self.env } |
