Skip to content

Commit 75e0f48

Browse files
committed
debug
1 parent cfb4203 commit 75e0f48

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
@@ -1637,6 +1637,11 @@ private module Debug {
16371637
tm.resolveTypeAt(path) = type
16381638
}
16391639

1640+
Type debugInferAnnotatedType(AstNode n, TypePath path) {
1641+
n = getRelevantLocatable() and
1642+
result = inferAnnotatedType(n, path)
1643+
}
1644+
16401645
pragma[nomagic]
16411646
private int countTypesAtPath(AstNode n, TypePath path, Type t) {
16421647
t = inferType(n, path) and

0 commit comments

Comments
 (0)