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

Remove unnecessary Sugar.polynewtype #2467

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

gpetiot
Copy link
Collaborator

@gpetiot gpetiot commented Oct 23, 2023

@Julow I was surprised that this code had no impact, I couldn't find a regression example, it looks like the parser never introduces this pattern, but a second review to confirm would be useful!

This makes #2401 easier, since there are heavy changes on the poly/newtypes constructors, and this code is a headache to maintain.

@gpetiot gpetiot added the no changelog set this to bypass the CI check for changelog entries label Oct 23, 2023
@gpetiot gpetiot requested a review from Julow October 23, 2023 08:55
Copy link
Collaborator

@Julow Julow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is indeed unnecessary since #2412
polynewtype was called when formatting let-op bindings and I don't think the AST it matches is outputted by the parser.
Let's merge!

@gpetiot gpetiot merged commit 4a213e2 into ocaml-ppx:main Oct 26, 2023
9 of 10 checks passed
@gpetiot gpetiot deleted the rm-sugar-polynewtype branch October 26, 2023 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog set this to bypass the CI check for changelog entries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants