-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-c_unwind`#![feature(c_unwind)]``#![feature(c_unwind)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Discovered when thinking about #97235. Exactly the same snippet of code:
extern "C-unwind" {
fn foo();
}
fn bar() {
unsafe { foo(); }
}
Compiling the above in -C panic=abort
requires a personality function to turn unwind into abort. The current criteria for determining whether a personality function is needed just looks at the panic strategy, so rust_eh_personality
isn't required, causing a linking error instead.
@rustbot label: F-c_unwind requires-nightly C-bug
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-c_unwind`#![feature(c_unwind)]``#![feature(c_unwind)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.