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

feat: make array indexes polymophic integers #1877

Merged
merged 3 commits into from
Jul 6, 2023
Merged

Conversation

sirasistant
Copy link
Contributor

Description

Problem*

Allows array accesses to use integers, which were disallowed in the frontend but supported by the backend.

Summary*

Documentation

  • This PR requires documentation updates when merged.

    • I will submit a noir-lang/docs PR.
    • I will request for and support Dev Rel's help in documenting this PR.

Additional Context

PR Checklist*

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

jfecher
jfecher previously approved these changes Jul 6, 2023
Copy link
Contributor

@jfecher jfecher left a comment

Choose a reason for hiding this comment

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

Looks good, lets just change some wording

crates/noirc_frontend/src/hir/type_check/expr.rs Outdated Show resolved Hide resolved
crates/noirc_frontend/src/hir/type_check/stmt.rs Outdated Show resolved Hide resolved
@jfecher jfecher enabled auto-merge July 6, 2023 15:13
@jfecher jfecher added this pull request to the merge queue Jul 6, 2023
Merged via the queue into master with commit 0fc93fa Jul 6, 2023
@jfecher jfecher deleted the arv/integer_arrays branch July 6, 2023 16:22
ludamad pushed a commit that referenced this pull request Jul 7, 2023
* feat: make array indexes poly int

* Update crates/noirc_frontend/src/hir/type_check/expr.rs

* Update crates/noirc_frontend/src/hir/type_check/stmt.rs

---------

Co-authored-by: jfecher <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Jul 13, 2023
* fix: workaround for #1838

This is currently not ideal in form but should inform a larger fix

* fix: cargo check

* Fix hacked path

* Fix hacked path

* Fix hacked path

* feat: make array indexes polymophic integers (#1877)

* feat: make array indexes poly int

* Update crates/noirc_frontend/src/hir/type_check/expr.rs

* Update crates/noirc_frontend/src/hir/type_check/stmt.rs

---------

Co-authored-by: jfecher <[email protected]>

* Make proving and verification keys optional

* More merge progress

* chore: introduce lib_hacky segregation

---------

Co-authored-by: Álvaro Rodríguez <[email protected]>
Co-authored-by: jfecher <[email protected]>
Co-authored-by: kevaundray <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants