diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2019-12-02 13:10:02 -0500 |
|---|---|---|
| committer | Who? Me?! <mark-i-m@users.noreply.github.com> | 2020-01-02 21:54:14 -0600 |
| commit | bb1f79d856e202f604d8fead4ea493af076ff05d (patch) | |
| tree | ba79a054325bdc40445ff32b4b88cbbbee207c84 /src | |
| parent | 1b0297fe0e267e68f4f8e391add94e852d468d8d (diff) | |
| download | rust-bb1f79d856e202f604d8fead4ea493af076ff05d.tar.gz rust-bb1f79d856e202f604d8fead4ea493af076ff05d.zip | |
Fix name of lang item
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/panic-implementation.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/panic-implementation.md b/src/doc/rustc-dev-guide/src/panic-implementation.md index 7de4bc0a2e4..4dbc5e613be 100644 --- a/src/doc/rustc-dev-guide/src/panic-implementation.md +++ b/src/doc/rustc-dev-guide/src/panic-implementation.md @@ -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 |
