Fix name of lang item

This commit is contained in:
Aaron Hill 2019-12-02 13:10:02 -05:00 committed by Who? Me?!
parent 25c226cfa8
commit 6897e6b8cf
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ pub fn rust_begin_panic(info: &PanicInfo<'_>) -> ! {
The special `panic_handler` attribute is resolved via `src/librustc/middle/lang_items`.
The `extract` function converts the `panic_handler` attribute to a `panic_impl` lang item.
Now, we have a matching `panic_impl` lang item in the `libstd`. This function goes
Now, we have a matching `panic_handler` lang item in the `libstd`. This function goes
through the same process as the `extern { fn panic_impl }` definition in `libcore`, ending
up with a symbol name of `rust_begin_unwind`. At link time, the symbol refernce in `libcore`
will be resolved to the definition of `libstd` (the function called `rust_begin_panic` in the