mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-02-10 20:41:23 +02:00
Remove reference to panic-abort.
It doesn't build with current rustc.
This commit is contained in:
parent
0a2263451d
commit
8e009b9674
@ -7,7 +7,7 @@
|
||||
use core::panic::PanicInfo;
|
||||
|
||||
#[panic_handler]
|
||||
fn panic(_panic: &PanicInfo<'_>) -> ! {
|
||||
fn panic(_panic: &PanicInfo) -> ! {
|
||||
loop {}
|
||||
}
|
||||
```
|
||||
@ -16,7 +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`.
|
||||
* It can also be provided by another crate, such as `panic-halt`.
|
||||
* Depending on the target, you may need to compile with `panic = "abort"` to avoid an error about
|
||||
`eh_personality`.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user