Skip to content

Conversation

@AprilNEA
Copy link
Contributor

@AprilNEA AprilNEA commented Dec 30, 2025

Close #99173.

Adds a regression test for #99173, which was an ICE that occurred when a proc-macro generated code that invoked another proc-macro returning an empty TokenStream.

Adds a test for nested proc-macro calls where the inner macro returns an
empty TokenStream.
This previously caused an ICE in rustc_resolve.
@rustbot
Copy link
Collaborator

rustbot commented Dec 30, 2025

Failed to set assignee to mjul: invalid assignee

Note: Only org members with at least the repository "read" role, users with write permissions, or people who have commented on the PR may be assigned.

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 30, 2025
@AprilNEA
Copy link
Contributor Author

r? @cyrgani

@reddevilmidzy
Copy link
Member

Please add close #99173 to the PR description so that the issue is automatically closed when the PR is merged.

@AprilNEA
Copy link
Contributor Author

AprilNEA commented Jan 1, 2026

@cyrgani

Done. BTW, can you review this pr?

@JonathanBrouwer
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jan 1, 2026

📌 Commit b3c3604 has been approved by JonathanBrouwer

It is now in the queue for this repository.

@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 Jan 1, 2026
bors added a commit that referenced this pull request Jan 1, 2026
Add regression test for issue #99173

Close #99173.

Adds a regression test for #99173, which was an ICE that occurred when a proc-macro generated code that invoked another proc-macro returning an empty `TokenStream`.
@bors
Copy link
Collaborator

bors commented Jan 1, 2026

⌛ Testing commit b3c3604 with merge f370be2...

@JonathanBrouwer
Copy link
Contributor

@bors retry
I think it's probably stuck, yielding to enclosing rollup

bors added a commit that referenced this pull request Jan 1, 2026
…uwer

Rollup of 4 pull requests

Successful merges:

 - #150382 (Tweak wording of diff marker diagnostic)
 - #150431 (test and document that `proc_macro::Ident` is NFC-normalized)
 - #150504 (Add regression test for issue #99173)
 - #150568 (Update triagebot config for `compiler-errors`, `tests/{run-make,run-make-cargo}` and `fallback` adhoc_group)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit ed5a529 into rust-lang:main Jan 2, 2026
11 of 12 checks passed
@rustbot rustbot added this to the 1.94.0 milestone Jan 2, 2026
rust-timer added a commit that referenced this pull request Jan 2, 2026
Rollup merge of #150504 - AprilNEA:fix-99173, r=JonathanBrouwer

Add regression test for issue #99173

Close #99173.

Adds a regression test for #99173, which was an ICE that occurred when a proc-macro generated code that invoked another proc-macro returning an empty `TokenStream`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Compile panic in nested empty proc_macro

6 participants