Skip to content

Commit 209c50a

Browse files
committed
Rust: Fix type inference for library parameters
1 parent d10002c commit 209c50a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ private module CallExprBaseMatchingInput implements MatchingInputSig {
614614
exists(Param p, int i |
615615
paramPos(this.getParamList(), p, i) and
616616
i = dpos.asPosition() and
617-
result = inferAnnotatedType(p.getPat(), path)
617+
result = p.getTypeRepr().(TypeMention).resolveTypeAt(path)
618618
)
619619
or
620620
exists(SelfParam self |

0 commit comments

Comments
 (0)