-
Notifications
You must be signed in to change notification settings - Fork 200
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
Usage of .as_array()
method on slice results in panic during inlining
#5245
Labels
bug
Something isn't working
Comments
This can also be run into when just checking equality between two slices |
We used to encounter this a lot when array literals & types were polymorphic over arrays and structs. Not sure why it is happening now. |
5 tasks
Fixed by #5278 |
github-merge-queue bot
pushed a commit
that referenced
this issue
Jun 26, 2024
# Description ## Problem\* Resolves <!-- Link to GitHub Issue --> ## Summary\* This PR addresses a TODO in the stdlib now that #5245 is resolved. ## Additional Context ## Documentation\* Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[For Experimental Features]** Documentation to be submitted in a separate PR. # 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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Aim
I would like to write a very simple program which just returns the modulus of the field being used.
Expected Behavior
I would expect that this program would successfully compile and I would get ACIR which directly commits to the values of each public input.
Bug
Compilation fails with a panic inside the inlining pass.
To Reproduce
Project Impact
None
Impact Context
No response
Workaround
None
Workaround Description
I can work around this by directly inlining the contents of
as_array
into my function as so.Additional Context
No response
Installation Method
Compiled from source
Nargo Version
No response
NoirJS Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: