Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Document BoundedVec #4430

Merged
merged 10 commits into from
Feb 28, 2024
Merged

chore: Document BoundedVec #4430

merged 10 commits into from
Feb 28, 2024

Conversation

jfecher
Copy link
Contributor

@jfecher jfecher commented Feb 26, 2024

Description

Problem*

Resolves #4348

Summary*

Documents BoundedVec

Additional Context

Documentation*

Check one:

  • No documentation needed.
  • Documentation included in this PR.
  • [Exceptional Case] Documentation to be submitted in a separate PR.

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Feb 26, 2024
@jfecher
Copy link
Contributor Author

jfecher commented Feb 26, 2024

This PR requires #4431 for the changed BoundedVec::new() function

@jfecher
Copy link
Contributor Author

jfecher commented Feb 26, 2024

Looks like this is failing due to some formatting differences in files in the stdlib that I did not touch. I'll update the PR to include them

Copy link
Contributor

github-actions bot commented Feb 26, 2024

@TomAFrench
Copy link
Member

Can you update the examples to pull code from snippets? We can then be sure that the code in the docs is tested.

github-merge-queue bot pushed a commit that referenced this pull request Feb 27, 2024
# Description

## Problem\*
## Summary\*

Removes the `empty_value` field from the bounded vec. This muddies the
API and shouldn't be needed since we have `crate::unsafe::zeroed()`
instead.

## Additional Context



## Documentation\*

Check one:
- [ ] No documentation needed.
- [ ] Documentation included in this PR.
- [x] **[Exceptional Case]** Documentation to be submitted in a separate
PR.
  - Included in #4430

# PR Checklist\*

- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.

---------

Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
Co-authored-by: Tom French <tom@tomfren.ch>
@jfecher
Copy link
Contributor Author

jfecher commented Feb 27, 2024

Looks like re-running the tests twice fixed the issue. Third time's the charm.

Copy link
Contributor

FYI @noir-lang/developerrelations on Noir doc changes.

Copy link
Member

@TomAFrench TomAFrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could add more snippets here but I think this is mergeable.

@jfecher jfecher added this pull request to the merge queue Feb 28, 2024
Merged via the queue into master with commit 261531d Feb 28, 2024
43 checks passed
@jfecher jfecher deleted the jf/bounded-vec-docs branch February 28, 2024 16:32
TomAFrench added a commit that referenced this pull request Mar 2, 2024
* master: (27 commits)
  feat: skip redundant range checks in brillig (#4460)
  fix: Variables from trait constraints being permanently bound over when used within a trait impl (#4450)
  feat: Add overflow and underflow checks for unsigned integers in brillig (#4445)
  fix(flake): stop flake.nix removing ignored-tests.txt (#4455)
  fix: build noir_codegen when publishing (#4448)
  chore: only ignore Nargo.toml in `test_programs` directory and not su… (#4451)
  chore: create parser specifically for function visibility (#4425)
  chore: Document BoundedVec (#4430)
  chore: split up parser into separate files for code organisation (#4420)
  feat: Sync from aztec-packages (#4444)
  chore!: reserve `unchecked` keyword (#4432)
  chore: address code review comments of PR4398 (#4435)
  feat: Sync from aztec-packages (#4439)
  feat: Sync from aztec-packages (#4438)
  chore(docs): correct 'Edit this page' URL for dev docs (#4433)
  feat: Sync from aztec-packages (#4390)
  chore(docs): fix external contributor force push workflow (#4437)
  chore!: Remove empty value from bounded vec (#4431)
  chore: nargo fmt (#4434)
  feat: add poseidon2 opcode implementation for acvm/brillig, and Noir (#4398)
  ...
TomAFrench added a commit that referenced this pull request Mar 4, 2024
* master:
  chore: export `report_errors` from `nargo` (#4461)
  feat: add option to set max memory for bb.js (#4227)
  feat: backpropagate constants in ACIR during optimization (#3926)
  feat: skip redundant range checks in brillig (#4460)
  fix: Variables from trait constraints being permanently bound over when used within a trait impl (#4450)
  feat: Add overflow and underflow checks for unsigned integers in brillig (#4445)
  fix(flake): stop flake.nix removing ignored-tests.txt (#4455)
  fix: build noir_codegen when publishing (#4448)
  chore: only ignore Nargo.toml in `test_programs` directory and not su… (#4451)
  chore: create parser specifically for function visibility (#4425)
  chore: Document BoundedVec (#4430)
  chore: split up parser into separate files for code organisation (#4420)
  feat: Sync from aztec-packages (#4444)
  chore!: reserve `unchecked` keyword (#4432)
  chore: address code review comments of PR4398 (#4435)
  feat: Sync from aztec-packages (#4439)
  feat: Sync from aztec-packages (#4438)
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.

Document bounded_vec
2 participants