Skip to content

Fix links and names after compiler mv to compiler/ #838

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 31, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix line lengths
  • Loading branch information
mark-i-m committed Aug 30, 2020
commit f2fc4db418f7bff2323f1d386b2eaa27b59e9296
7 changes: 4 additions & 3 deletions src/panic-implementation.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ unsafe { panic_impl(&pi) }

Actually resolving this goes through several layers of indirection:

1. In `compiler/rustc_middle/src/middle/weak_lang_items.rs`, `panic_impl` is declared as 'weak lang item',
with the symbol `rust_begin_unwind`. This is used in `rustc_typeck/src/collect.rs`
to set the actual symbol name to `rust_begin_unwind`.
1. In `compiler/rustc_middle/src/middle/weak_lang_items.rs`, `panic_impl` is
declared as 'weak lang item', with the symbol `rust_begin_unwind`. This is
used in `rustc_typeck/src/collect.rs` to set the actual symbol name to
`rust_begin_unwind`.

Note that `panic_impl` is declared in an `extern "Rust"` block,
which means that core will attempt to call a foreign symbol called `rust_begin_unwind`
Expand Down