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

Desugar module param patterns before canonicalization #7109

Merged
merged 3 commits into from
Sep 20, 2024

Conversation

agu-z
Copy link
Collaborator

@agu-z agu-z commented Sep 20, 2024

Module param patterns do not appear in defs and therefore weren't automatically run through desugaring.

Amongst other, this fixes an issue where canonicalize_record_destructures would panic when it run into a multiline params pattern because it didn't expect Pattern::SpaceBefore nodes to exist at that point.

@agu-z agu-z merged commit 6c846a5 into main Sep 20, 2024
18 checks passed
@agu-z agu-z deleted the desugar-param-patterns branch September 20, 2024 20:28
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.

2 participants