Skip to content

fix: Pass the correct per-token (not global) edition when expanding macro_rules #20164

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ChayimFriedman2
Copy link
Contributor

@ChayimFriedman2 ChayimFriedman2 commented Jul 3, 2025

This was hard to do because of the separation between mbe and hir-expand, but became possible by the Salsa migration, as now SyntaxContext doesn't require ExpandDatabase, salsa::Database is enough.

Blocked on #20163. Fixes #20153.

…rules

This was hard to do because of the separation between `mbe` and `hir-expand`, but became possible by the Salsa migration, as now `SyntaxContext` doesn't require `ExpandDatabase`, `salsa::Database` is enough.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 3, 2025
@ChayimFriedman2 ChayimFriedman2 marked this pull request as draft July 3, 2025 17:32
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 3, 2025
It tests the opposite of the correct behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

alert expected Expr for expression whose path contains gen in assert_eq!
2 participants