about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-06-07 02:11:20 +0000
committerbors <bors@rust-lang.org>2017-06-07 02:11:20 +0000
commit21d0f9144489b043f5b493c998de1c8afedb1321 (patch)
treee5e1787ce1385fe2d307965c56abb135d299bd8e /src/rustllvm/RustWrapper.cpp
parent76242aebb9d47558124c991a6faf0eb706d35703 (diff)
parent9debe91675222782e08fbb15bb6359a05bf85131 (diff)
downloadrust-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