Skip to content

Remove BinOp resugaring#1950

Merged
maximebuyse merged 11 commits intocryspen:mainfrom
JuanCoRo:remove-binops-resugaring
Feb 16, 2026
Merged

Remove BinOp resugaring#1950
maximebuyse merged 11 commits intocryspen:mainfrom
JuanCoRo:remove-binops-resugaring

Conversation

@JuanCoRo
Copy link
Contributor

Closes #1705. This PR:

  • Removes the BinOp struct and associated implementations in resugaring.rs.
  • Propagates this change to the pertinent files.
  • Adapts lean.rs's expr function to match directly on binops' GlobalIds.

@JuanCoRo JuanCoRo requested a review from a team as a code owner February 16, 2026 14:03
Copy link
Contributor

@maximebuyse maximebuyse left a comment

Choose a reason for hiding this comment

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

Thanks @JuanCoRo, I added small comments about the style, but otherwise this looks good!

@maximebuyse maximebuyse removed the request for review from clementblaudeau February 16, 2026 14:46
Copy link
Contributor

@maximebuyse maximebuyse left a comment

Choose a reason for hiding this comment

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

Thanks for the edits! It's good to merge now, if CI passes.

@JuanCoRo
Copy link
Contributor Author

JuanCoRo commented Feb 16, 2026

Clippy was failing with

error: unused import: std::collections::HashSet

So I removed the import

@maximebuyse maximebuyse added this pull request to the merge queue Feb 16, 2026
Merged via the queue into cryspen:main with commit 640d672 Feb 16, 2026
17 of 18 checks passed
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.

Rethink the BinOps resugaring

2 participants