Commit 4b98f61
authored
## Summary
Backport of #22393
(Update Noir to nightly-2026-04-10) to v4-next, plus 3 companion PRs
needed for Noir compatibility since v4-next was still on
nightly-2026-02-12.
## Companion PRs included
Since v4-next hadn't updated Noir since nightly-2026-02-12 (~2 months
behind), several intermediate Noir-adaptation PRs were also needed:
1. **#20702** — Remove unnecessary `comptime` qualifier from VK tree
constants (Noir broke comptime globals used in non-comptime contexts)
2. **#20798** — Remove unnecessary `let mut` across noir-projects (newer
Noir errors on this)
3. **#21801** — Replace deprecated Noir comptime APIs: `add_attribute()`
→ `add_abi()`, `set_body()`/`set_parameters()`/`set_return_public()` →
`function.disable()`, update `fn_has_noinitcheck` to also check
`is_fn_only_self()`
## Commits
1. **Cherry-pick with conflict markers** — raw cherry-pick of #22393
2. **Conflict resolution** — version bumps + reformatting resolved
3. **Cherry-pick #20702** — comptime globals + poseidon2 hash fix
4. **Cherry-pick #20798** — unnecessary mut removal (24 files)
5. **Cherry-pick #21801** — macro API migration (4 files)
6. **Remaining fixes** — private_context.nr mut + utils.nr style
alignment
85 files changed
Lines changed: 727 additions & 592 deletions
File tree
- avm-transpiler
- barretenberg
- acir_tests
- cpp
- pil/vm2
- src/barretenberg/vm2
- common
- generated/relations
- docs/examples/contracts/nft/src
- noir-projects
- aztec-nr/aztec
- src
- context
- history
- keys
- macros
- aztec
- functions
- internals_functions_generation
- messages/encryption
- oracle
- state_vars
- single_use_claim
- test/helpers
- noir-contracts/contracts
- account
- schnorr_account_contract
- src
- schnorr_hardcoded_account_contract
- src
- app
- card_game_contract/src
- orderbook_contract/src
- private_voting_contract/src/test
- protocol
- aztec_sublib/src
- context
- oracle
- contract_class_registry_contract/src
- test
- avm_gadgets_test_contract
- avm_test_contract
- src
- counter_contract/src
- only_self_contract/src
- public_immutable_contract/src
- returning_tuple_contract/src
- state_vars_contract/src
- storage_proof_test_contract/src/storage_proofs
- noir-protocol-circuits/crates
- blob
- src
- utils
- private-kernel-lib/src
- components
- private_call_data_validator
- reset
- key_validation_request
- tests
- read_request/tests
- tests
- private_kernel_init/private_call_data
- private_kernel_inner
- private_kernel_reset
- rollup-lib
- src/checkpoint_merge/tests
- serde/src
- types
- src
- abis
- address
- blob_data
- delayed_public_mutable
- scheduled_value_change
- hash
- merkle_tree
- traits
- utils
- arrays
- noir
- yarn-project
- end-to-end/src
- foundation/src/curves/grumpkin
- noir-protocol-circuits-types/src
- stdlib/src/abi
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 111 | | |
115 | 112 | | |
116 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | 168 | | |
| 169 | + | |
| 170 | + | |
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
261 | | - | |
262 | 260 | | |
| 261 | + | |
| 262 | + | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | 21 | | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1121 | 1121 | | |
1122 | 1122 | | |
1123 | 1123 | | |
1124 | | - | |
| 1124 | + | |
1125 | 1125 | | |
1126 | 1126 | | |
1127 | 1127 | | |
| |||
1288 | 1288 | | |
1289 | 1289 | | |
1290 | 1290 | | |
1291 | | - | |
| 1291 | + | |
1292 | 1292 | | |
1293 | 1293 | | |
1294 | 1294 | | |
| |||
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| |||
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
156 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
| |||
204 | 208 | | |
205 | 209 | | |
206 | 210 | | |
207 | | - | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
208 | 214 | | |
209 | 215 | | |
210 | 216 | | |
| |||
662 | 668 | | |
663 | 669 | | |
664 | 670 | | |
665 | | - | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
666 | 674 | | |
667 | 675 | | |
668 | 676 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments