Skip to content

Reimplement check for [anywhere] rules on the haskell backend#3051

Merged
rv-jenkins merged 6 commits intodevelopfrom
anywhere-check
Nov 18, 2022
Merged

Reimplement check for [anywhere] rules on the haskell backend#3051
rv-jenkins merged 6 commits intodevelopfrom
anywhere-check

Conversation

@Baltoli
Copy link
Copy Markdown
Contributor

@Baltoli Baltoli commented Nov 18, 2022

As discussed, this PR reinstates the previous change with an additional code path that allows anywhere rules to be sent to the backend if the user explicitly guarantees they know what they're doing; a warning is flagged in this case.

The tests ensure that the LLVM backend treats rules sensibly, and that the Haskell backend doesn't crash when given one of these rules.

I have tested this on the C semantics (the original motivating case for dropping this in the first place), and the flag works as intended.

Fixes #2909

@rv-jenkins rv-jenkins changed the base branch from master to develop November 18, 2022 16:24
@Baltoli Baltoli force-pushed the anywhere-check branch 2 times, most recently from 6fc0fc5 to a446152 Compare November 18, 2022 16:35
Copy link
Copy Markdown
Contributor

@radumereuta radumereuta left a comment

Choose a reason for hiding this comment

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

code looks good

@rv-jenkins rv-jenkins merged commit 050497d into develop Nov 18, 2022
@rv-jenkins rv-jenkins deleted the anywhere-check branch November 18, 2022 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants