Skip to content

Commit

Permalink
Rollup merge of rust-lang#136133 - hkBst:patch-23, r=ibraheemdev
Browse files Browse the repository at this point in the history
Fix sentence in process::abort
  • Loading branch information
matthiaskrgr authored Feb 1, 2025
2 parents 2005e08 + 0617106 commit 7a233b9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions library/std/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2318,14 +2318,10 @@ pub fn exit(code: i32) -> ! {
/// Terminates the process in an abnormal fashion.
///
/// The function will never return and will immediately terminate the current
/// process in a platform specific "abnormal" manner.
///
/// Note that because this function never returns, and that it terminates the
/// process, no destructors on the current stack or any other thread's stack
/// will be run.
///
/// Rust IO buffers (eg, from `BufWriter`) will not be flushed.
/// Likewise, C stdio buffers will (on most platforms) not be flushed.
/// process in a platform specific "abnormal" manner. As a consequence,
/// no destructors on the current stack or any other thread's stack
/// will be run, Rust IO buffers (eg, from `BufWriter`) will not be flushed,
/// and C stdio buffers will (on most platforms) not be flushed.
///
/// This is in contrast to the default behavior of [`panic!`] which unwinds
/// the current thread's stack and calls all destructors.
Expand Down

0 comments on commit 7a233b9

Please sign in to comment.