This PR implements the as_slice builtin function for the comptime interpreter. I've also fixed an issue where due to builtin/foreign/oracle functions having an early return, we don't call exit_function which results in the scopes being left in an inconsistent state.
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 and/or cargo fmt on default settings.
Description
Problem*
Resolves https://github.com/noir-lang/noir/issues/5274
Summary*
This PR implements the
as_slice
builtin function for the comptime interpreter. I've also fixed an issue where due to builtin/foreign/oracle functions having an early return, we don't callexit_function
which results in the scopes being left in an inconsistent state.Additional Context
Documentation*
Check one:
PR Checklist*
cargo fmt
on default settings.