Skip to content

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

Merged
bors merged 1 commit into
rust-lang:masterfrom
Aaron1011:fix/proc-macro-panic-hide
Sep 4, 2020
Merged

Respect -Z proc-macro-backtrace flag for panics inside libproc_macro#76292
bors merged 1 commit into
rust-lang:masterfrom
Aaron1011:fix/proc-macro-panic-hide

Conversation

@Aaron1011

Copy link
Copy Markdown
Contributor

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.

Fixesrust-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
Copy Markdown
Contributor

r? @petrochenkov

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

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 3, 2020
@jyn514jyn514 added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Sep 3, 2020
Comment threadsrc/test/ui-fulldeps/auxiliary/proc-macro-panic.rs
@petrochenkov

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Sep 3, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 53cce25 has been approved by petrochenkov

@borsbors 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
Copy Markdown
Member

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

@bors

bors commented Sep 4, 2020

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 53cce25 with merge c59199e...

@bors

bors commented Sep 4, 2020

Copy link
Copy Markdown
Collaborator

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

@borsbors added the merged-by-bors This PR was explicitly merged by bors. label Sep 4, 2020
@bors
bors merged commit c59199e into rust-lang:masterSep 4, 2020
@rustbotrustbot added this to the 1.48.0 milestone Sep 4, 2020
borsBot 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 <edwin0cheng@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-borsThis PR was explicitly merged by bors.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant 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

@Aaron1011@rust-highfive@petrochenkov@bors@spastorino@jyn514@rustbot