Files
rust/compiler/rustc_codegen_llvm
Jonathan Brouwer 99f6df7fc7 Rollup merge of #163574 - tgross35:intrinsics-abort-rename, r=clarfonthey
intrinsics: Rename `abort` to `abort_immediate`

The semantics of `intrinsics::abort()` are closer to what we have unstably as `abort_immediate()` than to `process::abort()` or `libc::abort()`. Rename it to make more clear that the intrinsic is more of an intentional crash with platform-specific behavior than what `libc::abort()` tries to be (i.e. raising `SIGABRT`).

If desired, a new intrinsic like `abort_gracefully` could be introduced that performs platform-specific behavior. This would more cleanly unblock https://github.com/rust-lang/rust/pull/149780.

See also discussion at the tracking issue for `immediate_abort` https://github.com/rust-lang/rust/issues/154601.
2026-10-02 22:39:48 +02:00
..
2026-08-31 20:48:05 +02:00
…

The codegen crate contains the code to convert from MIR into LLVM IR, and then from LLVM IR into machine code. In general it contains code that runs towards the end of the compilation process.

For more information about how codegen works, see the rustc dev guide.