diff options
| author | bors <bors@rust-lang.org> | 2017-06-07 02:11:20 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-06-07 02:11:20 +0000 |
| commit | 21d0f9144489b043f5b493c998de1c8afedb1321 (patch) | |
| tree | e5e1787ce1385fe2d307965c56abb135d299bd8e /src/rustllvm/RustWrapper.cpp | |
| parent | 76242aebb9d47558124c991a6faf0eb706d35703 (diff) | |
| parent | 9debe91675222782e08fbb15bb6359a05bf85131 (diff) | |
| download | rust-21d0f9144489b043f5b493c998de1c8afedb1321.tar.gz rust-21d0f9144489b043f5b493c998de1c8afedb1321.zip | |
Auto merge of #42133 - cuviper:stdio-from, r=alexcrichton
Add conversions from File and Child* handles to Stdio `Stdio` now implements `From<ChildStdin>`, `From<ChildStdout>`, `From<ChildStderr>`, and `From<File>`. The `Command::stdin`/`stdout`/`stderr` methods now take any type that implements `Into<Stdio>`. This makes it much easier to write shell-like command chains, piping to one another and redirecting to and from files. Otherwise one would need to use the unsafe and OS-specific `from_raw_fd` or `from_raw_handle`.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
