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

internal: Create a quoting mechanism instead of textual AST make #18790

Merged
merged 4 commits into from
Dec 30, 2024

Conversation

ChayimFriedman2
Copy link
Contributor

And port a few makers.

Fixes #18780, but I suspect there are many more like it lurking, and the work won't finish until we port them all.

I'm not completely satisfied with this (due to the ease of making a mistake in the AST structure, and slightly less but also because of the need to remember whitespaces), but this is already enough to see how this will look like. So I sent a PR to see how people will respond.

Can be reviewed commit by commit.

…here possible

This will help for the quote macro for `ast::make`.
This will also help for the make's quote macro.
Instead of messing with textual `make`.

And port one `make` helper to it, for the sake of testing.
And implement addons as necessary.

There are many more makers to be moved, and I'm not completely satisfied with this (due to the ease of making a mistake in the AST structure, and slightly less but also because of the need to remember whitespaces), but this is already enough to see how this will look like.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 30, 2024
@Veykril Veykril added this pull request to the merge queue Dec 30, 2024
@Veykril
Copy link
Member

Veykril commented Dec 30, 2024

I'm not completely satisfied with this (due to the ease of making a mistake in the AST structure, and slightly less but also because of the need to remember whitespaces), but this is already enough to see how this will look like. So I sent a PR to see how people will respond.

Same here, clearly not the final solution but its good enough to work around our issues for now (and not that invasive so easily replaceable in the future)

Merged via the queue into rust-lang:master with commit 2e13684 Dec 30, 2024
9 checks passed
@ChayimFriedman2 ChayimFriedman2 deleted the proper-make branch December 30, 2024 12:00
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.

internal error: entered unreachable code: mapping more input nodes than there are output nodes
3 participants