Skip to content

Conversation

@ChayimFriedman2
Copy link
Contributor

@ChayimFriedman2 ChayimFriedman2 commented Jul 3, 2025

This turns out to not mitigate #20153, because it was not the real reason. The real reason even has a FIXME:

// FIXME: Pass the correct edition per token. Due to the split between mbe and hir-expand it's complicated.
let parser_input = to_parser_input(buffer, &mut |_ctx| edition);

But it still should fix some small bug that only appears on edition 2015. I didn't write a test because I'm not sure under what conditions it'll manifest, but it should be there.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 3, 2025
Because, as it turns out, this is necessary to determine the correct edition (it is not global).

The next commits will make use of it.
@ChayimFriedman2 ChayimFriedman2 force-pushed the parser-per-token-edition branch 2 times, most recently from ed6ce36 to 5736fd3 Compare August 13, 2025 17:37
@ChayimFriedman2 ChayimFriedman2 force-pushed the parser-per-token-edition branch from 5736fd3 to 9bc940a Compare August 13, 2025 17:37
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.

2 participants