You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…ap-on-None, r=alexcrichton
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
new lint: `zombie_processes`
Closesrust-lang#10754
Lint description should explain this PR, so I think there's nothing else to say here ^^
changelog: new lint: [`zombie_processes`]
Result:
Similarly
std::run::{process_status, process_output}
fails if it fails to make new process.Previously #10654 suggested a potential fix using
Result
but the patch would sound after #10449 lands.The text was updated successfully, but these errors were encountered: