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

Bring our TokenTree model closer to rustc's #17830

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

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Aug 8, 2024

Our model is kind of arbitrary and less strict, the syntax node <-> TokenTree conversion is also messy and brittle, likewise our MBE infra will benefit from a more concise model. Lastly, rustc uses this one TokenStream model for the parser, be it from macro inputs/outputs or general lexing where as we have a very confusing and inefficient setup to make this work for our parser. Ideally we should do a similar move and switch to a unified input there which ought to aid perf quite a bit when transcribing MBE macros.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 8, 2024
@bors
Copy link
Contributor

bors commented Aug 29, 2024

☔ The latest upstream changes (presumably #17994) made this pull request unmergeable. Please resolve the merge conflicts.

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.

3 participants