File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ Actually resolving this goes through several layers of indirection:
38
38
[cfg (not (test ))]
39
39
[panic_handler ]
40
40
[unwind (allowed )]
41
- pub fn rust_begin_panic (info : & PanicInfo <'_ >) -> ! {
42
- continue_panic_fmt ( & info )
41
+ pub fn begin_panic_handler (info : & PanicInfo <'_ >) -> ! {
42
+ ...
43
43
}
44
44
```
45
45
@@ -49,7 +49,7 @@ The `extract` function converts the `panic_handler` attribute to a `panic_impl`
49
49
Now, we have a matching ` panic_handler ` lang item in the ` libstd ` . This function goes
50
50
through the same process as the ` extern { fn panic_impl } ` definition in ` libcore ` , ending
51
51
up with a symbol name of ` rust_begin_unwind ` . At link time, the symbol refernce in ` libcore `
52
- will be resolved to the definition of ` libstd ` (the function called ` rust_begin_panic ` in the
52
+ will be resolved to the definition of ` libstd ` (the function called ` begin_panic_handler ` in the
53
53
Rust source).
54
54
55
55
Thus, control flow will pass from libcore to std at runtime. This allows panics from ` libcore `
You can’t perform that action at this time.
0 commit comments