Add -Z proc-macro-backtrace to allow showing proc-macro panics - #75082
Conversation
|
(rust_highfive has picked a reviewer for you, use r? to override) |
9acdad1 to
87422ef
Compare
|
(I'll review this next weekend.) |
|
I'll review this next weekend. |
|
☔ The latest upstream changes (presumably #74862) made this pull request unmergeable. Please resolve the merge conflicts. |
|
r=me after rebase |
Fixes rust-lang#75050 Previously, we would unconditionally suppress the panic hook during proc-macro execution. This commit adds a new flag -Z proc-macro-backtrace, which allows running the panic hook for easier debugging.
87422ef to
d920866
Compare
|
@bors r=petrochenkov |
|
📌 Commit d920866 has been approved by |
|
☀️ Test successful - checks-actions, checks-azure |
|
Your PR failed (pretty log, raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem. Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
7047: Add force_show_panics flag for proc-macro bridge r=jonas-schievink a=edwin0cheng rust-lang/rust#75082 and rust-lang/rust#76292 added a new flag in `proc_macro::Bridge` such that the ABI was changed. These ABI changing are the reason of some weird panics which caused #6880 and maybe related to the panic mentioned in #6820. These changes are landed on rust stable 1.48 so I think it is okay to apply it now. fixes #6880 r @jonas-schievink Co-authored-by: Edwin Cheng <edwin0cheng@gmail.com>
Fixes #75050
Previously, we would unconditionally suppress the panic hook during
proc-macro execution. This commit adds a new flag
-Z proc-macro-backtrace, which allows running the panic hook foreasier debugging.