-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rust_begin_unwind
not emitted when crate-type = bin
#51671
Comments
I also see that the EDIT: same thing with rust_oom |
Interesting. |
After bisecting this: nightly-2017-11-08 worked but nightly-2017-11-09 didn't. The most relevant PR that landed between those two releases is #45575, which says:
It sounds like weak lang items should also be exported in this case as they are effectively |
see rust-lang#51671 for details fixes rust-lang#51671 fixes rust-lang#51342
fix in #51687 |
translate / export weak lang items see #51671 for details fixes #51671 fixes #51342 r? @michaelwoerister or @alexcrichton
STR
However if the crate is turned into an rlib the
rust_begin_unwind
symbol will be emitted.Metada
However this problem is also present in
nightly-2018-06-03
before#[panic_implementation]
landed:rust_begin_unwind
is not emitted when thepanic_fmt
lang item is present in a binary crate.This issue was found while analyzing #51342 (comment).
The text was updated successfully, but these errors were encountered: