Skip to content

fix(noirc_errors): Switch update_acir to use for-loop instead of iter#2646

Closed
vezenovm wants to merge 1 commit intomasterfrom
mv/fix-update-acir
Closed

fix(noirc_errors): Switch update_acir to use for-loop instead of iter#2646
vezenovm wants to merge 1 commit intomasterfrom
mv/fix-update-acir

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
@TomAFrench TomAFrench deleted the mv/fix-update-acir branch November 20, 2024 12:01
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