about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-07-26 10:44:33 +0000
committerGitHub <noreply@github.com>2020-07-26 10:44:33 +0000
commit8ff40af7286b66294d8b64f0c8fdb3179a84be76 (patch)
treeb1b0217431debda56409d018a24a86b139d29312
parent4e21fc3136f18ad12a409db5ffe1307d9c431103 (diff)
parent524c2e9a7c2ce1270141bc1150346d72975facc7 (diff)
downloadrust-8ff40af7286b66294d8b64f0c8fdb3179a84be76.tar.gz
rust-8ff40af7286b66294d8b64f0c8fdb3179a84be76.zip
Merge #5538
5538: Report type errors in metrics r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
-rw-r--r--crates/rust-analyzer/src/cli/analysis_stats.rs4
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 10327ebb93b..ccc058682e8 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(
         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();