diff --git a/compiler/noirc_frontend/src/elaborator/lints.rs b/compiler/noirc_frontend/src/elaborator/lints.rs index da3e033cd4c..d228588d367 100644 --- a/compiler/noirc_frontend/src/elaborator/lints.rs +++ b/compiler/noirc_frontend/src/elaborator/lints.rs @@ -41,7 +41,7 @@ pub(super) fn deprecated_function(interner: &NodeInterner, expr: ExprId) -> Opti /// as all unconstrained functions are not inlined and so /// associated attributes are disallowed. pub(super) fn inlining_attributes(func: &NoirFunction) -> Option { - if !func.def.is_unconstrained { + if func.def.is_unconstrained { let attributes = func.attributes().clone(); if attributes.is_no_predicates() {