Skip to content

Commit a6c577b

Browse files
committed
Update for method renames in libstd
1 parent e87f54b commit a6c577b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/panic-implementation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ Actually resolving this goes through several layers of indirection:
3838
[cfg(not(test))]
3939
[panic_handler]
4040
[unwind(allowed)]
41-
pub fn rust_begin_panic(info: &PanicInfo<'_>) -> ! {
42-
continue_panic_fmt(&info)
41+
pub fn begin_panic_handler(info: &PanicInfo<'_>) -> ! {
42+
...
4343
}
4444
```
4545

@@ -49,7 +49,7 @@ The `extract` function converts the `panic_handler` attribute to a `panic_impl`
4949
Now, we have a matching `panic_handler` lang item in the `libstd`. This function goes
5050
through the same process as the `extern { fn panic_impl }` definition in `libcore`, ending
5151
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
5353
Rust source).
5454

5555
Thus, control flow will pass from libcore to std at runtime. This allows panics from `libcore`

0 commit comments

Comments
 (0)