Skip to content

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

Merged
TomAFrench merged 1 commit intomasterfrom
mv/use-mut-ref-in-dispatch-closure
Feb 27, 2025
Merged

fix(aztec-nr): Use mutable ref when mutating variable in closure#12311
TomAFrench merged 1 commit intomasterfrom
mv/use-mut-ref-in-dispatch-closure

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