Skip to content

Tracking Issue for ExitCode::exit_process() #97100

Open
@coolreader18

Description

@coolreader18

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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-processArea: `std::process` and `std::env`C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions