Skip to content

Commit 800ab65

Browse files
committed
split expression and pattern metrics
1 parent c12fac6 commit 800ab65

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,10 @@ impl flags::AnalysisStats {
486486
percentage(num_pats_partially_unknown, num_pats),
487487
num_pat_type_mismatches
488488
);
489-
report_metric("unknown type", num_exprs_unknown + num_pats_unknown, "#");
490-
report_metric("type mismatches", num_expr_type_mismatches + num_pat_type_mismatches, "#");
489+
report_metric("unknown type", num_exprs_unknown, "#");
490+
report_metric("type mismatches", num_expr_type_mismatches, "#");
491+
report_metric("pattern unknown type", num_pats_unknown, "#");
492+
report_metric("pattern type mismatches", num_pat_type_mismatches, "#");
491493

492494
eprintln!("{:<20} {}", "Inference:", inference_sw.elapsed());
493495
}

0 commit comments

Comments
 (0)