Open
Description
Feature gate: #![feature(exitcode_exit_method)]
This is a tracking issue for the ExitCode::exit_process()
method.
exit_code.exit_process()
exits the process with the ExitCode
passed as the self argument.
Public API
impl std::process::ExitCode {
pub fn exit_process(self) -> !;
}
Steps / History
- Implementation: ExitCode::exit_process() method #95356
- Final comment period (FCP)
- Stabilization PR
Unresolved Questions
- Name of the method? Might be better to have a free function instead of associated method, but then there's no good name for it that wouldn't overlap with the existing
process::exit
. As a postfix verb it's sorta clunky, or maybe doesn't communicate explicitly with what the process is being exited? I think exit_process strikes a good balance but I discussed it more in the impl PR ExitCode::exit_process() method #95356.