Skip to content

fix: replace deprecated BoundedVec::from_parts_unchecked in aztec-nr#23689

Closed
AztecBot wants to merge 1 commit into
merge-train/spartanfrom
cb/fix-from-parts-unchecked
Closed

fix: replace deprecated BoundedVec::from_parts_unchecked in aztec-nr#23689
AztecBot wants to merge 1 commit into
merge-train/spartanfrom
cb/fix-from-parts-unchecked

Conversation

@AztecBot

Copy link
Copy Markdown
Collaborator

Problem

CI on merge-train/spartan fails at the [aztec-nr] step (log, parent 1780055514267304). The failure is unrelated to the world-state change (#23677) that the train picked up — it is an integration break: the noir submodule merged onto this train deprecated BoundedVec::from_parts_unchecked, and aztec-nr's warnings check runs nargo check --deny-warnings, so the two remaining call sites abort the build:

error: `BoundedVec::from_parts` no longer requires an extra loop, `BoundedVec::from_parts_unchecked` is no longer required
  aztec/src/note/note_getter.nr:263
  aztec/src/utils/array/subbvec.nr:26

Fix

Swap both call sites to BoundedVec::from_parts. In the current noir stdlib from_parts and from_parts_unchecked have identical signatures and identical bodies (from_parts no longer does an extra zeroing loop), so this is a semantically equivalent, no-op-at-runtime migration — it just drops the deprecated symbol. The now-stale comments justifying the _unchecked variant were updated accordingly.

Only aztec-nr is checked with --deny-warnings; the other from_parts_unchecked usages live in noir-protocol-circuits test modules whose check runs without --deny-warnings, so they are not part of this failure and are left untouched.

Verification

Built nargo from this train's pinned noir submodule and ran the exact failing commands from aztec-nr/bootstrap.sh:

  • nargo check --deny-warnings → exit 0 (previously aborted)
  • nargo doc --check → exit 0

Created by claudebox · group: slackbot

@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label May 29, 2026
AztecBot added a commit that referenced this pull request Jun 1, 2026
Bumps the noir submodule to nightly-2026-06-01 (originally #23487) and
bundles the two follow-up changes needed for CI to pass on this bump:

- Replace deprecated BoundedVec::from_parts_unchecked with from_parts in
  aztec-nr (note_getter.nr, subbvec.nr). The bumped noir stdlib deprecates
  from_parts_unchecked, and aztec-nr's warnings check runs
  nargo check --deny-warnings, so the two call sites aborted the build.
  from_parts and from_parts_unchecked have identical signatures/bodies in
  the current stdlib, so this is a no-op-at-runtime migration. (originally #23689)

- Regenerate the @aztec/noir-noir_js file: entry in yarn-project/yarn.lock,
  whose content hash went stale (294c27 -> 341fef) when the noir packages
  changed, breaking yarn install --immutable.
@AztecBot

AztecBot commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator Author

Automatically closing this stale claudebox draft PR (no updates for 5+ days). Re-open if still needed.

@AztecBot AztecBot closed this Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant