diff options
| author | Ralf Jung <post@ralfj.de> | 2025-09-02 12:09:05 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-09-02 12:19:06 +0200 |
| commit | a6c0519faef6512aff1ee1a1fe2bf2556fe2d642 (patch) | |
| tree | e9f7ecad1de8679eee1b92a8b96ae47dbfa46a2d /library/std/src/sys/pal/unix/mod.rs | |
| parent | 05abce5d058db0de3abd10f32f1a442d0f699b30 (diff) | |
| download | rust-a6c0519faef6512aff1ee1a1fe2bf2556fe2d642.tar.gz rust-a6c0519faef6512aff1ee1a1fe2bf2556fe2d642.zip | |
improve process::abort rendering in Miri backtraces
Diffstat (limited to 'library/std/src/sys/pal/unix/mod.rs')
| -rw-r--r-- | library/std/src/sys/pal/unix/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys/pal/unix/mod.rs b/library/std/src/sys/pal/unix/mod.rs index 400128acf12..ac5c823a1bf 100644 --- a/library/std/src/sys/pal/unix/mod.rs +++ b/library/std/src/sys/pal/unix/mod.rs @@ -364,6 +364,7 @@ pub fn cvt_nz(error: libc::c_int) -> crate::io::Result<()> { // multithreaded C program. It is much less severe for Rust, because Rust // stdlib doesn't use libc stdio buffering. In a typical Rust program, which // does not use C stdio, even a buggy libc::abort() is, in fact, safe. +#[cfg_attr(miri, track_caller)] // even without panics, this helps for Miri backtraces pub fn abort_internal() -> ! { unsafe { libc::abort() } } |
