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

Ensure that peeling does not recurse into macros #14527

Merged
merged 1 commit into from
Apr 8, 2025

Conversation

samueltardieu
Copy link
Contributor

We do not want to remove casts done inside macros. Also, when printing the suggestion, take it from the same context as the origin expression (the root context).

Problems found while working on #14526, but should be merged even if #14526 is not.

changelog: none

@rustbot
Copy link
Collaborator

rustbot commented Apr 2, 2025

r? @dswij

rustbot has assigned @dswij.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Apr 2, 2025
We do not want to remove casts done inside macros. Also, when printing
the suggestion, take it from the same context as the origin expression
(the root context).
@samueltardieu samueltardieu changed the title Ensure that peeled expression do not recurse into macros Ensure that peeling does not recurse into macros Apr 2, 2025
@samueltardieu samueltardieu added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Apr 4, 2025
@samueltardieu
Copy link
Contributor Author

r? clippy

@rustbot rustbot assigned Alexendoo and unassigned dswij Apr 8, 2025
Copy link
Member

@Alexendoo Alexendoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Alexendoo Alexendoo added this pull request to the merge queue Apr 8, 2025
Merged via the queue into rust-lang:master with commit 634c1c8 Apr 8, 2025
11 checks passed
@samueltardieu
Copy link
Contributor Author

@flip1995 Is there anything else to do to bring this to your attention? (I've set beta-nominated)

@samueltardieu samueltardieu deleted the ptr-eq-macros branch April 8, 2025 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beta-nominated Nominated for backporting to the compiler in the beta channel. 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.

4 participants