Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Jan 25, 2024
1 parent b6f6086 commit 8d3893c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/noirc_frontend/src/hir/def_collector/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ pub enum DefCollectorErrorKind {
"Either the type or the trait must be from the same crate as the trait implementation"
)]
TraitImplOrphaned { span: Span },
#[error("Usage of the `#[foreign]` or `#[builtin] function attributes are not allowed outside of the Noir standard library")]
#[error("Usage of the `#[foreign]` or `#[builtin]` function attributes are not allowed outside of the Noir standard library")]
LowLevelFunctionOutsideOfStdlib { span: Span },
#[error("macro error : {0:?}")]
MacroError(MacroError),
Expand Down Expand Up @@ -250,7 +250,7 @@ impl From<DefCollectorErrorKind> for Diagnostic {
),
DefCollectorErrorKind::LowLevelFunctionOutsideOfStdlib { span } => Diagnostic::simple_error(
"Definition of low-level function outside of standard library".into(),
"Usage of the `#[foreign]` or `#[builtin] function attributes are not allowed outside of the Noir standard library".into(),
"Usage of the `#[foreign]` or `#[builtin]` function attributes are not allowed outside of the Noir standard library".into(),
span,
),
DefCollectorErrorKind::MacroError(macro_error) => {
Expand Down

0 comments on commit 8d3893c

Please sign in to comment.