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

Require let rec pattern variables to have layout value. #2943

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

ccasin
Copy link
Contributor

@ccasin ccasin commented Aug 19, 2024

Per discussion on the unboxed tuples PR, this requires all pattern variables bound by a let rec to have layout value.

This isn't really a change: the existence of Lambda.layout_letrec shows we thought things bound by a let-rec had layout value. But we have been relying on Value_rec_check to enforce it, and that will no longer be sufficient in the presence of unboxed tuples (there is a test case in that PR showing this - I will rebase it once this is merged).

@liam923 perhaps you could review? It's mostly changes to error messages. This is lower priority than the 5.2 merge or current compiler release.

Copy link
Contributor

@liam923 liam923 left a comment

Choose a reason for hiding this comment

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

LGTM. These error messages make a lot more sense than the old ones.

@ccasin ccasin merged commit 37137df into ocaml-flambda:main Aug 20, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants