mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
Rust: Add test with type inference inconsistency
This commit is contained in:
@@ -31,7 +31,8 @@ query predicate illFormedTypeMention(TypeMention tm) {
|
||||
}
|
||||
|
||||
query predicate nonUniqueCertainType(AstNode n, TypePath path) {
|
||||
Consistency::nonUniqueCertainType(n, path, _)
|
||||
Consistency::nonUniqueCertainType(n, path, _) and
|
||||
n.fromSource() // Only include inconsistencies in the source.
|
||||
}
|
||||
|
||||
int getTypeInferenceInconsistencyCounts(string type) {
|
||||
|
||||
Reference in New Issue
Block a user