Skip to content

Respect -Z proc-macro-backtrace flag for panics inside libproc_macro #76292

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

Merged
merged 1 commit into from
Sep 4, 2020

Conversation

Aaron1011
Copy link
Member

Fixes #76270

Previously, any panic occuring during a call to a libproc_macro method
(e.g. calling Ident::new with an invalid identifier) would always
cause an ICE message to be printed.

Fixes rust-lang#76270

Previously, any panic occuring during a call to a libproc_macro method
(e.g. calling `Ident::new` with an invalid identifier) would always
cause an ICE message to be printed.
@rust-highfive
Copy link
Contributor

r? @petrochenkov

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 3, 2020
@jyn514 jyn514 added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Sep 3, 2020
@petrochenkov
Copy link
Contributor

@bors r+

@bors
Copy link
Collaborator

bors commented Sep 3, 2020

📌 Commit 53cce25 has been approved by petrochenkov

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 3, 2020
@spastorino
Copy link
Member

Given that this fixes a P-critical issue ...
@bors p=1

@bors
Copy link
Collaborator

bors commented Sep 4, 2020

⌛ Testing commit 53cce25 with merge c59199e...

@bors
Copy link
Collaborator

bors commented Sep 4, 2020

☀️ Test successful - checks-actions, checks-azure
Approved by: petrochenkov
Pushing c59199e to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Sep 4, 2020
@bors bors merged commit c59199e into rust-lang:master Sep 4, 2020
@rustbot rustbot added this to the 1.48.0 milestone Sep 4, 2020
bors bot added a commit to rust-lang/rust-analyzer that referenced this pull request Dec 27, 2020
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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression in proc macro panics being reported as compiler bugs
7 participants