Skip to content

Commit c5f83c4

Browse files
committed
Rust: Add rust/diagnostics/type-inference-consistency-counts.
1 parent ed3a33f commit c5f83c4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* @name Type inference inconsistency counts
3+
* @description Counts the number of type inference inconsistencies of each type. This query is intended for internal use.
4+
* @kind diagnostic
5+
* @id rust/diagnostics/type-inference-consistency-counts
6+
*/
7+
8+
private import codeql.rust.internal.TypeInferenceConsistency as Consistency
9+
10+
// see also `rust/diagnostics/type-inference-consistency`, which lists the
11+
// individual inconsistency results.
12+
from string type, int num
13+
where num = Consistency::getTypeInferenceInconsistencyCounts(type)
14+
select type, num

0 commit comments

Comments
 (0)