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(noirc_errors): Switch update_acir to use for-loop instead of iter #2646

Closed
wants to merge 1 commit into from

Conversation

vezenovm
Copy link
Contributor

@vezenovm vezenovm commented Sep 11, 2023

Description

Problem*

Some context here: #2645 (comment)

Iterators are lazy in Rust. In update_acir we did not use the iterator for new_locations. This means we are calling mem::take on our location data, but never inserting back into it, thus removing all our runtime location data.

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.

@TomAFrench
Copy link
Member

I've got an existing PR for this here: #2643

@vezenovm
Copy link
Contributor Author

@TomAFrench oops I missed that thanks!

@vezenovm vezenovm closed this Sep 11, 2023
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