mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-15 23:54:07 +00:00
Serialize errors to make them sortable, deterministic, and generally more control
This commit is contained in:
@@ -2095,7 +2095,7 @@ gb_internal void print_show_unused(Checker *c) {
|
||||
array_add(&unused, e);
|
||||
}
|
||||
|
||||
gb_sort_array(unused.data, unused.count, cmp_entities_for_printing);
|
||||
array_sort(unused, cmp_entities_for_printing);
|
||||
|
||||
print_usage_line(0, "Unused Package Declarations");
|
||||
|
||||
@@ -2680,6 +2680,7 @@ int main(int arg_count, char const **arg_ptr) {
|
||||
}
|
||||
|
||||
if (any_errors()) {
|
||||
print_all_errors();
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -2691,6 +2692,7 @@ int main(int arg_count, char const **arg_ptr) {
|
||||
|
||||
check_parsed_files(checker);
|
||||
if (any_errors()) {
|
||||
print_all_errors();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user