Skip to content

Commit

Permalink
feat!: turn CannotReexportItemWithLessVisibility into an error (#6952)
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite authored Jan 6, 2025
1 parent 54d81ca commit da18a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/noirc_frontend/src/hir/def_collector/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ impl<'a> From<&'a DefCollectorErrorKind> for Diagnostic {
}
DefCollectorErrorKind::PathResolutionError(error) => error.into(),
DefCollectorErrorKind::CannotReexportItemWithLessVisibility{item_name, desired_visibility} => {
Diagnostic::simple_warning(
Diagnostic::simple_error(
format!("cannot re-export {item_name} because it has less visibility than this use statement"),
format!("consider marking {item_name} as {desired_visibility}"),
item_name.span())
Expand Down

0 comments on commit da18a12

Please sign in to comment.