rust-lang / rust-lang/rust

Tracking Issue for abort_immediate (abort in core)

Open
#154,601 7 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-tracking-issue S-waiting-on-bikeshed T-libs
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Feature gate: #![feature(abort_immediate)]

This is a tracking issue for core::process::abort_immediate.

abort_immediate aborts/halts/crashes the process with as little overhead as possible. This exposes intrinsics::abort's behavior to stable. This is also reexported as std::process::abort_immediate.

Public API
// core::process
pub fn abort_immediate() -> !;

// std::process
pub fn abort_immediate() -> !;
Steps / History

(Remember to update the S-tracking-* label when checking boxes.)

  • ACP: rust-lang/libs-team#442
  • Implementation: rust-lang/rust#154604
  • Final comment period (FCP)^1
  • Stabilization PR
Unresolved Questions
  • Given we want core::process::abort to opportunistically do std::process::abort if possible and abort_immediate otherwise, do we even want to expose a separate abort_immediate?
  • Would another name more clearly communicate intent? Options include process::crash, process::halt, or others.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the public API entries for core::process::abort_immediate and std::process::abort_immediate, then review the unresolved questions and completed implementation history. Done means resolving the API and naming concerns, completing the final comment period, and opening the stabilization PR.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend-api-design, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.