| @@ -14,11 +14,9 @@ use crate::thread::Result; |
|
|
| 14 |
14 |
/// |
| 15 |
15 |
/// `PanicInfo` structure is passed to a panic hook set by the [`set_hook`] function. |
| 16 |
16 |
/// |
| 17 |
|
-/// [`set_hook`]: ../../std/panic/fn.set_hook.html |
| 18 |
|
-/// |
| 19 |
17 |
/// There two `PanicInfo` types: |
| 20 |
18 |
/// - [`core::panic::PanicInfo`], which is used as an argument to a `#[panic_handler]` in `#![no_std]` programs. |
| 21 |
|
-/// - `std::panic::PanicInfo`, which is used as an argument to a panic hook set by [`std::panic::set_hook`]. |
|
19 |
+/// - `std::panic::PanicInfo`, which is used as an argument to a panic hook set by [`set_hook`]. |
| 22 |
20 |
/// |
| 23 |
21 |
/// This is the second one. |
| 24 |
22 |
/// |
| @@ -35,6 +33,7 @@ use crate::thread::Result; |
|
|
| 35 |
33 |
/// ``` |
| 36 |
34 |
/// |
| 37 |
35 |
/// [`core::panic::PanicInfo`]: ../../core/panic/struct.PanicInfo.html |
|
36 |
+/// [`set_hook`]: ../../std/panic/fn.set_hook.html |
| 38 |
37 |
#[stable(feature = "panic_hooks", since = "1.10.0")] |
| 39 |
38 |
#[derive(Debug)] |
| 40 |
39 |
pub struct PanicInfo<'a> { |