Skip to content
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

fix: panic when inlining callsites inside macros' parameters #16678

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

roife
Copy link
Member

@roife roife commented Feb 26, 2024

Close #16660, #12429, #10695.

When inline_into_callers encounters callsites in macros parameters, it can lead to panics. Since there is no perfect way to handle macros, this PR directly filters out these cases.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 26, 2024
@Veykril
Copy link
Member

Veykril commented Feb 26, 2024

Needs a rustfmt step, otherwise lgtm!
@bors delegate+

@bors
Copy link
Collaborator

bors commented Feb 26, 2024

✌️ @roife, you can now approve this pull request!

If @Veykril told you to "r=me" after making some further change, please make that change, then do @bors r=@Veykril

@lnicola
Copy link
Member

lnicola commented Feb 26, 2024

@bors r+

@bors
Copy link
Collaborator

bors commented Feb 26, 2024

📌 Commit 61b576c has been approved by lnicola

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Feb 26, 2024

⌛ Testing commit 61b576c with merge 9650578...

@bors
Copy link
Collaborator

bors commented Feb 26, 2024

☀️ Test successful - checks-actions
Approved by: lnicola
Pushing 9650578 to master...

@bors bors merged commit 9650578 into rust-lang:master Feb 26, 2024
11 checks passed
@roife roife deleted the fix-issue-16660 branch February 26, 2024 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inline into all callers panic
5 participants