From d6af9c7d822a67bd8e3ff9d5fc553577a1ad530f Mon Sep 17 00:00:00 2001 From: Maddiaa0 <47148561+Maddiaa0@users.noreply.github.com> Date: Sat, 2 Sep 2023 15:30:37 +0000 Subject: [PATCH] fix: minor doc --- crates/noirc_frontend/src/hir/type_check/expr.rs | 2 +- crates/noirc_frontend/src/hir_def/function.rs | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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.