Skip to content

Commit 8ff40af

Browse files
bors[bot]matklad
andauthored
Merge #5538
5538: Report type errors in metrics r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents 4e21fc3 + 524c2e9 commit 8ff40af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/rust-analyzer/src/cli/analysis_stats.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,16 @@ pub fn analysis_stats(
276276
num_exprs_unknown,
277277
if num_exprs > 0 { num_exprs_unknown * 100 / num_exprs } else { 100 }
278278
);
279+
report_metric("unknown type", num_exprs_unknown, "#");
280+
279281
eprintln!(
280282
"Expressions of partially unknown type: {} ({}%)",
281283
num_exprs_partially_unknown,
282284
if num_exprs > 0 { num_exprs_partially_unknown * 100 / num_exprs } else { 100 }
283285
);
286+
284287
eprintln!("Type mismatches: {}", num_type_mismatches);
288+
report_metric("type mismatches", num_type_mismatches, "#");
285289

286290
let inference_time = inference_time.elapsed();
287291
let total_memory = ra_prof::memory_usage();

0 commit comments

Comments
 (0)