Closed michaeljklein closed 3 days ago
🚀 Deployed on https://667dc8473d9dce5e85cba424--noir-docs.netlify.app
Something to be aware of is that this will result in any printlns happening in test functions not printing if the test fails due to one of these static asserts. We should be careful to ensure that we maintain a good UX for when one of these fails rather than just going up in smoke.
FYI @noir-lang/developerrelations on Noir doc changes.
Something to be aware of is that this will result in any printlns happening in test functions not printing if the test fails due to one of these static asserts.
It shouldn't be bad to add support for compile time prints (especially with us having println supported in the interpreter now: https://github.com/noir-lang/noir/pull/5197). We can probably add this in a follow-up though. Let's make an issue to make sure test functions can still print on failure even when a static assert is hit @michaeljklein
Description
Problem*
Resolves https://github.com/noir-lang/noir/issues/5182
Summary*
assert_constant
, but also checks that the input istrue
assert_constant
so that[dynamic_var]
is no longer treated as constantAdditional Context
Documentation*
Check one:
PR Checklist*
cargo fmt
on default settings.