mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 12:33:33 +00:00
Report type errors in metrics
This commit is contained in:
parent
4e21fc3136
commit
524c2e9a7c
1 changed files with 4 additions and 0 deletions
|
@ -276,12 +276,16 @@ pub fn analysis_stats(
|
|||
num_exprs_unknown,
|
||||
if num_exprs > 0 { num_exprs_unknown * 100 / num_exprs } else { 100 }
|
||||
);
|
||||
report_metric("unknown type", num_exprs_unknown, "#");
|
||||
|
||||
eprintln!(
|
||||
"Expressions of partially unknown type: {} ({}%)",
|
||||
num_exprs_partially_unknown,
|
||||
if num_exprs > 0 { num_exprs_partially_unknown * 100 / num_exprs } else { 100 }
|
||||
);
|
||||
|
||||
eprintln!("Type mismatches: {}", num_type_mismatches);
|
||||
report_metric("type mismatches", num_type_mismatches, "#");
|
||||
|
||||
let inference_time = inference_time.elapsed();
|
||||
let total_memory = ra_prof::memory_usage();
|
||||
|
|
Loading…
Reference in a new issue