Closed jfecher closed 3 days ago
This is failing under different inliner aggressiveness settings due to https://github.com/noir-lang/noir/issues/6583.
Currently it isn't possible to write the reference_counts
test since the count differs depending on the inliner level.
Edit: I excluded the i64 min inliner setting from this test - fixing it is a separate issue (https://github.com/noir-lang/noir/issues/6583). With this test in we'll be able to get faster failures when rc counts change unexpectantly.
🚀 Deployed on https://6740b13f3dbe5c00fe1d2512--noir-docs.netlify.app
FYI @noir-lang/developerrelations on Noir doc changes.
This PR is passing and ready for review now.
I recommend using the "hide whitespace" option since most of the changes in this PR are just me reorganizing a match statement in compiler/noirc_evaluator/src/brillig/brillig_gen/brillig_block.rs
Description
Problem*
Resolves
Summary*
Added debug functions to retrieve the hidden reference count field on arrays and slices in unconstrained code. This always returns
0
in constrained and comptime code.Additional Context
Documentation*
Check one:
PR Checklist*
cargo fmt
on default settings.