noir-lang / noir

Noir is a domain specific language for zero knowledge proofs
https://noir-lang.org
Apache License 2.0
897 stars 200 forks source link

fix: Be more lenient with semicolons on interned expressions #6062

Closed jfecher closed 2 months ago

jfecher commented 2 months ago

Description

Problem*

Resolves https://github.com/noir-lang/noir/issues/6060

Summary*

We had ExpressionKind::Interned as always requiring a semicolon to separate two expressions, but this isn't true for all expression types (blocks, if). We can't check what is interned so I just always made the semicolon optional.

Additional Context

Documentation*

Check one:

PR Checklist*

github-actions[bot] commented 2 months ago

Changes to Brillig bytecode sizes

Generated at commit: b365214d148b4d10c83f20fcdbfc06c9890de442, compared to commit: aedc9832240e55473c504fa2e6e3b3af618bda08

There are no changes in circuit sizes