Skip to content

Commit a12f511

Browse files
committed
Mention that panics can't possibly be caught when compiling with panic=abort
1 parent 283b4a1 commit a12f511

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/thread/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
//! Fatal logic errors in Rust cause *thread panic*, during which
2727
//! a thread will unwind the stack, running destructors and freeing
2828
//! owned resources. While not meant as a 'try/catch' mechanism, panics
29-
//! in Rust can nonetheless be caught with
29+
//! in Rust can nonetheless be caught (unless compiling with `panic=abort`) with
3030
//! [`catch_unwind`](../../std/panic/fn.catch_unwind.html) and recovered
3131
//! from, or alternatively be resumed with
3232
//! [`resume_unwind`](../../std/panic/fn.resume_unwind.html). If the panic

0 commit comments

Comments
 (0)