diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-07-26 10:44:33 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-26 10:44:33 +0000 |
| commit | 8ff40af7286b66294d8b64f0c8fdb3179a84be76 (patch) | |
| tree | b1b0217431debda56409d018a24a86b139d29312 | |
| parent | 4e21fc3136f18ad12a409db5ffe1307d9c431103 (diff) | |
| parent | 524c2e9a7c2ce1270141bc1150346d72975facc7 (diff) | |
| download | rust-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.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 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(); |
