1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-02 02:56:26 +02:00

Mention panic-abort and panic-halt crates.

This commit is contained in:
Andrew Walbran 2023-02-01 16:26:23 +00:00
parent f71a86d942
commit 2981d3856f

View File

@ -16,6 +16,7 @@ fn panic(_panic: &PanicInfo<'_>) -> ! {
* This will compile to an empty binary.
* `std` provides a panic handler; without it we must provide our own.
* It can also be provided by another crate, such as `panic-abort` or `panic-halt`.
* Depending on the target, you may need to compile with `panic = "abort"` to avoid an error about
`eh_personality`.