diff --git a/crates/noirc_frontend/src/hir/type_check/expr.rs b/crates/noirc_frontend/src/hir/type_check/expr.rs index 3a4c94ac3f4..79d38f4960f 100644 --- a/crates/noirc_frontend/src/hir/type_check/expr.rs +++ b/crates/noirc_frontend/src/hir/type_check/expr.rs @@ -29,7 +29,7 @@ impl<'interner> TypeChecker<'interner> { if let note = meta.attributes.get_deprecated_note() { self.errors.push(TypeCheckError::CallDeprecated { name: self.interner.definition_name(id).to_string(), - note, // TODO(MD): remove clone + note, span: location.span, }); } diff --git a/crates/noirc_frontend/src/hir_def/function.rs b/crates/noirc_frontend/src/hir_def/function.rs index 0094e3b9631..c552100c919 100644 --- a/crates/noirc_frontend/src/hir_def/function.rs +++ b/crates/noirc_frontend/src/hir_def/function.rs @@ -99,9 +99,8 @@ pub struct FuncMeta { pub module_id: ModuleId, /// A function's attributes are the `#[...]` items above the function - /// definition, if any. Currently, this is limited to a maximum of only one - /// Attribute per function. - /// TODO: edit the above + /// definition. + /// Primary Attributes will alter the function kind, secondary attributes do not pub attributes: Attributes, /// This function's type in its contract.