Skip to content

Commit a0a4905

Browse files
authored
Rollup merge of rust-lang#147349 - saethlin:panic-immediate-advice, r=Noratrieb
Improve the advice given by panic_immediate_abort Now that rust-lang#147338 is merged, users should consider using the Cargo support for immediate-aborting panics.
2 parents 8075935 + b5fb01d commit a0a4905

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/core/src/panicking.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ use crate::panic::{Location, PanicInfo};
3535
#[cfg(feature = "panic_immediate_abort")]
3636
compile_error!(
3737
"panic_immediate_abort is now a real panic strategy! \
38-
Enable it with the compiler flags `-Zunstable-options -Cpanic=immediate-abort`"
38+
Enable it with `panic = \"immediate-abort\"` in Cargo.toml, \
39+
or with the compiler flags `-Zunstable-options -Cpanic=immediate-abort`"
3940
);
4041

4142
// First we define the two main entry points that all panics go through.

0 commit comments

Comments
 (0)