Skip to content

fix(engine) Add ascription to match scrutinees. #1208

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

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

maximebuyse
Copy link
Contributor

Fixes #1207

This adds an ascription to pattern matching scrutinees. Maybe this could be made more fine-grained to do it only with scrutinees that can cause issues (this would avoid making the generated code too verbose)

Copy link
Contributor

@karthikbhargavan karthikbhargavan left a comment

Choose a reason for hiding this comment

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

Great, thanks. Let's get this in and close the issue.

@maximebuyse
Copy link
Contributor Author

maximebuyse commented Dec 24, 2024

I started a libcrux job to test this branch: https://github.com/cryspen/libcrux/actions/runs/12481269023/job/34833465672

@maximebuyse maximebuyse added this pull request to the merge queue Dec 24, 2024
Merged via the queue into main with commit f47b2ae Dec 24, 2024
15 of 16 checks passed
@maximebuyse maximebuyse deleted the ascribe-match-scrutinees branch December 24, 2024 13:42
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.

Missing type ascription in match scrutinee with array indexing
2 participants