This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -2318,14 +2318,10 @@ pub fn exit(code: i32) -> ! {
23182318/// Terminates the process in an abnormal fashion.
23192319///
23202320/// The function will never return and will immediately terminate the current
2321- /// process in a platform specific "abnormal" manner.
2322- ///
2323- /// Note that because this function never returns, and that it terminates the
2324- /// process, no destructors on the current stack or any other thread's stack
2325- /// will be run.
2326- ///
2327- /// Rust IO buffers (eg, from `BufWriter`) will not be flushed.
2328- /// Likewise, C stdio buffers will (on most platforms) not be flushed.
2321+ /// process in a platform specific "abnormal" manner. As a consequence,
2322+ /// no destructors on the current stack or any other thread's stack
2323+ /// will be run, Rust IO buffers (eg, from `BufWriter`) will not be flushed,
2324+ /// and C stdio buffers will (on most platforms) not be flushed.
23292325///
23302326/// This is in contrast to the default behavior of [`panic!`] which unwinds
23312327/// the current thread's stack and calls all destructors.
You can’t perform that action at this time.
0 commit comments