fix(aztec-nr): replace deprecated BoundedVec::from_parts_unchecked with from_parts#23686
Closed
AztecBot wants to merge 1 commit into
Closed
fix(aztec-nr): replace deprecated BoundedVec::from_parts_unchecked with from_parts#23686AztecBot wants to merge 1 commit into
AztecBot wants to merge 1 commit into
Conversation
Collaborator
Author
|
Automatically closing this stale claudebox draft PR (no updates for 5+ days). Re-open if still needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
CI on
merge-train/spartanis failing in theaztec-nrstep (log, sub-logc145c929c2fbaaeb):The recent noir submodule sync (#23683) deprecated
BoundedVec::from_parts_unchecked.from_partsno longer zeroes elements pastlenin an extra loop, so the two functions are now behaviorally identical andfrom_parts_uncheckedis marked#[deprecated]. Theaztec-nrlibrary is checked withnargo check --deny-warnings, so the deprecation warning fails the build.Fix
Replaced every non-generated
BoundedVec::from_parts_uncheckedcall site withBoundedVec::from_parts:aztec-nr(note_getter.nr,subbvec.nr) — these are what broke CI. Removed the now-obsolete comments explaining why the_uncheckedvariant was safe.noir-protocol-circuitsfiles (test helpers + one uniqueness-hint builder) — these only emit warnings today (those crates use plaincheck), migrated to clear the noise and complete the noir-sync follow-on.The replacement is a pure behavioral no-op given the new stdlib definition (
from_parts=assert(len <= MaxLen); BoundedVec { storage, len }).Verification
Built
nargoat the synced submodule commit (1.0.0-beta.21+4d0392685) and ran the same checks CI runs:nargo check --deny-warningsinnoir-projects/aztec-nr→ exit 0, no warnings (previously aborted with 2 errors).nargo checkonprivate-kernel-lib,types,rollup-lib,blob→ all exit 0.The second failure in the run (
bb-cpp-fuzzing) was a transient network flake —Could not resolve host: github.comwhile fetchingmsgpack-c— unrelated to this change.Created by claudebox · group:
slackbot