noir-lang / noir

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

chore: remove `is_unconstrained_fn` field from elaborator #5335

Closed TomAFrench closed 4 days ago

TomAFrench commented 4 days ago

Description

Problem*

Resolves

Summary*

In the vein of #5324, we now just look up whether the current_function is unconstrained rather than tracking this on the elaborator.

This does come with a little bit of a perf degradation as we need to look up the function on each jump but that should be pretty negligible.

Additional Context

Documentation*

Check one:

PR Checklist*