-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking Issue for ExitStatusError #84908
Copy link
Copy link
Open
Labels
A-error-handlingArea: Error handlingArea: Error handlingC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCPG-error-handlingProject group: Error handling (https://github.com/rust-lang/project-error-handling)Project group: Error handling (https://github.com/rust-lang/project-error-handling)T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-error-handlingArea: Error handlingArea: Error handlingC-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCPG-error-handlingProject group: Error handling (https://github.com/rust-lang/project-error-handling)Project group: Error handling (https://github.com/rust-lang/project-error-handling)T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(exit_status_error)]This is a tracking issue for
ExitStatusError(andExitStatus::exit_ok).This feature makes it convenient to properly check the exit status of subprocesses (such as from
Command)Example
Public API
(In pseudo-syntax:)
Steps / History
Output::exit_okAddstd::process::Output::exit_oklibs-team#554ExitStatusdocs)#[must_use]toprocess::ExitStatus(previous attempt Add #[must_use] to process::Command, process::Child and process::ExitStatus #81452); see also Tracking Issue for std::process error handling #73131.TryforExitStatusUnresolved Questions