Rollup merge of #136133 - hkBst:patch-23, r=ibraheemdev

Fix sentence in process::abort
This commit is contained in:
Matthias Krüger 2025-02-02 12:31:55 +01:00 committed by GitHub
commit 555dd6fe76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.