Skip to content
This repository has been archived by the owner on Mar 7, 2021. It is now read-only.

Print error message in #[panic_implementation] #24

Open
geofft opened this issue May 27, 2018 · 1 comment
Open

Print error message in #[panic_implementation] #24

geofft opened this issue May 27, 2018 · 1 comment

Comments

@geofft
Copy link
Collaborator

geofft commented May 27, 2018

It should be

#[lang = "panic_fmt"]
extern fn panic_fmt(msg: fmt::Arguments, file: &'static str, line: u32, col: u32) -> !;

and possibly also an #[unwind] or #[unwind(allowed)] in future definitions of Rust. See libcore's definition and longer discussion in #19 (comment)

@alex alex changed the title Fix definition of panic_fmt and maybe print the error message Print error message in #[panic_implementation] Jul 4, 2018
@alex
Copy link
Member

alex commented Jul 4, 2018

Updated the title to reflect that with #[panic_implementation] we now have the right signature, but we still don't print the message.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants