Skip to content

feat(frontend): give integer widths a legality rule and their own diagnostic - #17

Merged
BornPsych merged 8 commits into
provekit-v2from
ys/goldilocks-stage-5b
Sep 22, 2026
Merged

BornPsych merged 8 commits into
provekit-v2from
ys/goldilocks-stage-5b

Conversation

@BornPsych

@BornPsych BornPsych commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Stage 5b of the Goldilocks port: the standard library now elaborates under a field that is not bn254, taking the 62 errors nargo check --field goldilocks used to report down to zero. A field attribute can name every field but the one given, #[field(not(bn254))], and gating reaches types, traits and aliases too, so an impl leaves along with the type its module dropped. Behind that gate the bn254-only modules go (embedded curve ops, poseidon2, field/bn254), hashing and wrapping arithmetic each grew a second half for narrow fields, and 93 per-width numeric impls collapse into 26 generic ones over u<N> and i<N>. On bn254 nothing moves: all 509 execution_success programs keep identical ACIR opcode counts.

@github-actions

Copy link
Copy Markdown

Thank you for your contribution to the Noir language.

Please do not force push to this branch after the Noir team have started review of this PR. Doing so will only delay us merging your PR as we will need to start the review process from scratch.

Thanks for your understanding.

@BornPsych
BornPsych changed the base branch from provekit-v2 to ys/goldilocks-stage-5a September 16, 2026 09:25
@BornPsych
BornPsych added this pull request to stack #18 September 16, 2026 09:25
@BornPsych
BornPsych force-pushed the ys/goldilocks-stage-5b branch from f337bea to 0158fcb Compare September 16, 2026 09:40
Base automatically changed from ys/goldilocks-stage-5a to provekit-v2 September 22, 2026 13:39
@BornPsych
BornPsych force-pushed the ys/goldilocks-stage-5b branch from 1053453 to 05f4b9a Compare September 22, 2026 13:39
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Sep 22, 2026
@BornPsych
BornPsych merged commit fd4b2c9 into provekit-v2 Sep 22, 2026
181 of 182 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant