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: don't let mbe expr fragments match let exprs and inline consts #13800

Merged
merged 1 commit into from
Dec 20, 2022

Conversation

lowr
Copy link
Contributor

@lowr lowr commented Dec 20, 2022

Fixes #11729

expr fragment in mbe should not match let expressions and inline consts for backwards compatibility. See rust-lang/rust#86730 for details.

This patch is porting this logic in rustc (which is called here in rustc's mbe engine) to our mbe engine.

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

Veykril commented Dec 20, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Dec 20, 2022

📌 Commit e027ac0 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Dec 20, 2022

⌛ Testing commit e027ac0 with merge ccbf8fe...

@bors
Copy link
Contributor

bors commented Dec 20, 2022

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing ccbf8fe to master...

@bors bors merged commit ccbf8fe into rust-lang:master Dec 20, 2022
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.

r-a shows leftover tokens error on fine code
4 participants