Skip to content

REFINEDtype rhs in TASTy format does not correspond to reality #13506

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

Closed
cache-nez opened this issue Sep 10, 2021 · 3 comments · Fixed by #13507
Closed

REFINEDtype rhs in TASTy format does not correspond to reality #13506

cache-nez opened this issue Sep 10, 2021 · 3 comments · Fixed by #13507
Labels
area:tasty-format issues relating to TASTy as a portable standard itype:bug

Comments

@cache-nez
Copy link
Contributor

TASTy format specifies

REFINEDtype Length underlying_Type refinement_NameRef info_Type

however, the TreePickler first pickles the name, switching the order of underlying_Type and refinement_NameRef.

@cache-nez cache-nez added itype:bug area:tasty-format issues relating to TASTy as a portable standard labels Sep 10, 2021
@smarter
Copy link
Member

smarter commented Sep 10, 2021

Thanks for the report, would you mind making a PR fixing the documentation?

@cache-nez
Copy link
Contributor Author

@smarter I could fix the grammar, but I think the grammar has a more reasonable order: parent, refinement name, refinement type (compare: refinement name, parent, refinement type).
On the other hand, fixing the pickler + unpickler changes the TASTy format, which might also touch other areas I'm not aware of. That fix I am not sure how to proceed with.

@smarter
Copy link
Member

smarter commented Sep 10, 2021

Changing the pickler/unpickler would be a breaking change requiring us to bump our version to 3.2 and to keep a special case in the unpickler to handle existing tasty files produced by older versions of the compiler, so it's much simple to just change the grammar even if it looks a bit weird :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:tasty-format issues relating to TASTy as a portable standard itype:bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants