Skip to content

Remove unnecessary Sugar.polynewtype#2467

Merged
gpetiot merged 1 commit intoocaml-ppx:mainfrom
gpetiot:rm-sugar-polynewtype
Oct 26, 2023
Merged

Remove unnecessary Sugar.polynewtype#2467
gpetiot merged 1 commit intoocaml-ppx:mainfrom
gpetiot:rm-sugar-polynewtype

Conversation

@gpetiot
Copy link
Copy Markdown
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
Copy Markdown
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
@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