Skip to content

Commit 1b0cb90

Browse files
committed
Print number of diagnostics
1 parent 879aeb5 commit 1b0cb90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

vhdl_lang/src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,8 @@ fn show_diagnostics(diagnostics: &[Diagnostic]) {
121121
for diagnostic in diagnostics {
122122
println!("{}", diagnostic.show());
123123
}
124+
125+
if !diagnostics.is_empty() {
126+
println!("Found {} diagnostics", diagnostics.len());
127+
}
124128
}

0 commit comments

Comments
 (0)