Reference correction - Panic Implementation - core definition of panic #140970
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Reference to weak lang item mapping for panic_impl isn't found at the specified location, as referenced in point number 1 in the current doc. Via search, I could see here.
Here's a sample of expected flow, that invokes the panic_impl (printed as rust_begin_unwind):

Have a follow-up question about the mapping itself to
rust_begin_unwind
, the suffix part - unwind. At hand-off to std code paths, couldn't find any explicit unwind call that invokes the drop impls. I see that the once the backtrace is printed in the default hook, a call to intrinsics::abort is made. Like to understand if there's a relation from this code path to the support for destructors? Or are these independent, in the sense the runtime completes the panic flow, then independently invokes the destructors as the code that called the panic goes out of scope (assuming so for now)? Reason to seek clarification came from the mention of destructors in the commented lines here - call to destructors!Like to bring this to the forum's attention with an intent to seek clarification or an update to the current doc!
Thanks,
Kalyan
The text was updated successfully, but these errors were encountered: