diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/cli/analysis_stats.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/rust-analyzer/src/cli/analysis_stats.rs b/crates/rust-analyzer/src/cli/analysis_stats.rs index 10327ebb9..ccc058682 100644 --- a/crates/rust-analyzer/src/cli/analysis_stats.rs +++ b/crates/rust-analyzer/src/cli/analysis_stats.rs | |||
@@ -276,12 +276,16 @@ pub fn analysis_stats( | |||
276 | num_exprs_unknown, | 276 | num_exprs_unknown, |
277 | if num_exprs > 0 { num_exprs_unknown * 100 / num_exprs } else { 100 } | 277 | if num_exprs > 0 { num_exprs_unknown * 100 / num_exprs } else { 100 } |
278 | ); | 278 | ); |
279 | report_metric("unknown type", num_exprs_unknown, "#"); | ||
280 | |||
279 | eprintln!( | 281 | eprintln!( |
280 | "Expressions of partially unknown type: {} ({}%)", | 282 | "Expressions of partially unknown type: {} ({}%)", |
281 | num_exprs_partially_unknown, | 283 | num_exprs_partially_unknown, |
282 | if num_exprs > 0 { num_exprs_partially_unknown * 100 / num_exprs } else { 100 } | 284 | if num_exprs > 0 { num_exprs_partially_unknown * 100 / num_exprs } else { 100 } |
283 | ); | 285 | ); |
286 | |||
284 | eprintln!("Type mismatches: {}", num_type_mismatches); | 287 | eprintln!("Type mismatches: {}", num_type_mismatches); |
288 | report_metric("type mismatches", num_type_mismatches, "#"); | ||
285 | 289 | ||
286 | let inference_time = inference_time.elapsed(); | 290 | let inference_time = inference_time.elapsed(); |
287 | let total_memory = ra_prof::memory_usage(); | 291 | let total_memory = ra_prof::memory_usage(); |