Skip to content

Commit

Permalink
fix compiler to report error at extended check
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Mar 20, 2024
1 parent 0648533 commit f61225c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/compiler/src/built_package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ impl BuiltPackage {

// Run extended checks as well derive runtime metadata
let model = &model_opt.expect("move model");
let runtime_metadata = extended_checks::run_extended_checks(model);
if model.diag_count(Severity::Warning) > 0 {
let mut error_writer = StandardStream::stderr(ColorChoice::Auto);
model.report_diag(&mut error_writer, Severity::Warning);
Expand All @@ -92,7 +93,6 @@ impl BuiltPackage {
}
}

let runtime_metadata = extended_checks::run_extended_checks(model);
let compiled_pkg_path = package
.compiled_package_info
.build_flags
Expand Down

0 comments on commit f61225c

Please sign in to comment.