Skip to content
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

fix(aztec-nr): Use mutable ref when mutating variable in closure #12311

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

vezenovm
Copy link
Contributor

Post noir-lang/noir#7488 aztec-nr is going to fail to compile as we now explicitly error when attempting to use a capture mutably (lambda captures are meant to be entirely immutable). The current code only worked because it was done at comptime.

@fcarreiro
Copy link
Contributor

This is beyond my Noir knowledge to judge. Whatever works is ok for me. I'll let someone else approve :)

@TomAFrench TomAFrench merged commit ed32499 into master Feb 27, 2025
6 checks passed
@TomAFrench TomAFrench deleted the mv/use-mut-ref-in-dispatch-closure branch February 27, 2025 13:29
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.

4 participants