Skip to content

Commit

Permalink
feat!: disallow calling unconstrained functions outside of unsafe b…
Browse files Browse the repository at this point in the history
…locks and passing unconstrained functions in place of constrained functions (#6938)
  • Loading branch information
TomAFrench authored Jan 10, 2025
1 parent 65e1cba commit 2732947
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/noirc_frontend/src/hir/type_check/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,10 +496,10 @@ impl<'a> From<&'a TypeCheckError> for Diagnostic {
Diagnostic::simple_error(msg.to_string(), "".to_string(), *span)
},
TypeCheckError::Unsafe { span } => {
Diagnostic::simple_warning(error.to_string(), String::new(), *span)
Diagnostic::simple_error(error.to_string(), String::new(), *span)
}
TypeCheckError::UnsafeFn { span } => {
Diagnostic::simple_warning(error.to_string(), String::new(), *span)
Diagnostic::simple_error(error.to_string(), String::new(), *span)
}
TypeCheckError::UnspecifiedType { span } => {
Diagnostic::simple_error(error.to_string(), String::new(), *span)
Expand Down

0 comments on commit 2732947

Please sign in to comment.