-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Use panic::set_hook
to print the ICE message
#60584
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
Changes from 7 commits
a8926a5
e296ed3
0353339
3e2d4d2
cf1db72
547f96f
eefae7b
dab6813
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,11 @@ | |
// FIXME https://github.com/rust-lang/rust/issues/59998 | ||
// normalize-stderr-test "thread.*panicked.*proc_macro_server.rs.*\n" -> "" | ||
// normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> "" | ||
// normalize-stderr-test "error: internal compiler error.*\n" -> "" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So if I'm reading this right, we're now emitting an There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't caused by broken proc macros, it's a legitimate ICE: #59998 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To expand on this, there's a bug in rustc that causes the ICE to print, and it's triggered by certain cases of proc macros doing invalid things (that are documented to panic). I don't think it is very easy to trigger it, it requires doing something like this: https://github.com/rust-lang/rust/blob/61dced18277a8cd55c963502db5a4cdf837858f3/src/test/ui/proc-macro/auxiliary/invalid-punct-ident.rs There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the explanation! |
||
// normalize-stderr-test "note:.*unexpectedly panicked.*\n" -> "" | ||
// normalize-stderr-test "note: we would appreciate a bug report.*\n" -> "" | ||
// normalize-stderr-test "note: compiler flags.*\n" -> "" | ||
// normalize-stderr-test "note: rustc.*running on.*\n" -> "" | ||
|
||
#[macro_use] | ||
extern crate invalid_punct_ident; | ||
|
Uh oh!
There was an error while loading. Please reload this page.