mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Add bound check
This commit is contained in:
parent
d0357fc3b2
commit
977cf381ce
1 changed files with 2 additions and 2 deletions
|
@ -169,12 +169,12 @@ pub fn run(
|
||||||
println!(
|
println!(
|
||||||
"Expressions of unknown type: {} ({}%)",
|
"Expressions of unknown type: {} ({}%)",
|
||||||
num_exprs_unknown,
|
num_exprs_unknown,
|
||||||
(num_exprs_unknown * 100 / num_exprs)
|
if num_exprs > 0 { (num_exprs_unknown * 100 / num_exprs) } else { 100 }
|
||||||
);
|
);
|
||||||
println!(
|
println!(
|
||||||
"Expressions of partially unknown type: {} ({}%)",
|
"Expressions of partially unknown type: {} ({}%)",
|
||||||
num_exprs_partially_unknown,
|
num_exprs_partially_unknown,
|
||||||
(num_exprs_partially_unknown * 100 / num_exprs)
|
if num_exprs > 0 { (num_exprs_partially_unknown * 100 / num_exprs) } else { 100 }
|
||||||
);
|
);
|
||||||
println!("Type mismatches: {}", num_type_mismatches);
|
println!("Type mismatches: {}", num_type_mismatches);
|
||||||
println!("Inference: {:?}, {}", inference_time.elapsed(), ra_prof::memory_usage());
|
println!("Inference: {:?}, {}", inference_time.elapsed(), ra_prof::memory_usage());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue