noir
noir copied to clipboard
chore: fix unmutable environment
Description
Problem*
Resolves https://github.com/noir-lang/noir/issues/4795
Summary*
This PR simply adds a check on mutable captures: when not &mut
, a type checking error is thrown.
Additional Context
Documentation*
Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] [For Experimental Features] Documentation to be submitted in a separate PR.
PR Checklist*
- [x] I have tested the changes locally.
- [x] I have formatted the changes with Prettier and/or
cargo fmt
on default settings.