Skip to content

Commit 299a00d

Browse files
committed
debug
1 parent 5cdd491 commit 299a00d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rust/ql/lib/codeql/rust/internal/TypeInference.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,6 +1642,11 @@ private module Debug {
16421642
tm.resolveTypeAt(path) = type
16431643
}
16441644

1645+
Type debugInferAnnotatedType(AstNode n, TypePath path) {
1646+
n = getRelevantLocatable() and
1647+
result = inferAnnotatedType(n, path)
1648+
}
1649+
16451650
pragma[nomagic]
16461651
private int countTypesAtPath(AstNode n, TypePath path, Type t) {
16471652
t = inferType(n, path) and

0 commit comments

Comments
 (0)