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

fix: Assignment to arrays of structs #1998

Merged
merged 2 commits into from
Jul 21, 2023
Merged

fix: Assignment to arrays of structs #1998

merged 2 commits into from
Jul 21, 2023

Conversation

jfecher
Copy link
Contributor

@jfecher jfecher commented Jul 21, 2023

Description

Problem*

Resolves #1997

Summary*

Removes a TODO/assumption when assigning to arrays that the element type would be a single element rather than several of them (e.g. a tuple/struct). This only started triggering recently due to the recent println PR which disabled the array of structs to struct of arrays conversion for the ssa refactor.

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 changed the title Fix assignment to arrays of structs fix: Assignment to arrays of structs Jul 21, 2023
vezenovm
vezenovm previously approved these changes Jul 21, 2023
@jfecher
Copy link
Contributor Author

jfecher commented Jul 21, 2023

Tacked on another small fix to this PR. I would've created a separate PR but didn't realize I was still in this branch locally and it was only a 1 line change.

@jfecher jfecher added this pull request to the merge queue Jul 21, 2023
Merged via the queue into master with commit 2c3d976 Jul 21, 2023
@jfecher jfecher deleted the jf/fix-aos-assignment branch July 21, 2023 16:56
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.

Assigning to an array of structs
2 participants