diff options
| author | Cadence Marseille <cadencemarseille@gmail.com> | 2013-12-12 09:07:43 -0500 |
|---|---|---|
| committer | Cadence Marseille <cadencemarseille@gmail.com> | 2013-12-14 12:50:04 -0500 |
| commit | 5de42701a87cb0e517921cce7bc3a512e513301c (patch) | |
| tree | bf480894ad4ee3df5932a3d8e174eaba04f3320f /src/rustllvm/RustWrapper.cpp | |
| parent | 00b1adf93cab0ed11fbbace11f1c57c5f8017467 (diff) | |
| download | rust-5de42701a87cb0e517921cce7bc3a512e513301c.tar.gz rust-5de42701a87cb0e517921cce7bc3a512e513301c.zip | |
Fix #10754 - `std::run` functions fail after io_error
The problem was that std::run::Process::new() was unwrap()ing the result of std::io::process::Process::new(), which returns None in the case where the io_error condition is raised to signal failure to start the process. Have std::run::Process::new() similarly return an Option<run::Process> to reflect the fact that a subprocess might have failed to start. Update utility functions run::process_status() and run::process_output() to return Option<ProcessExit> and Option<ProcessOutput>, respectively. Various parts of librustc and librustpkg needed to be updated to reflect these API changes. closes #10754
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
