Skip to content

Commit 976fcc8

Browse files
committed
Rust: Fix type inference for library parameters
1 parent e5b4a15 commit 976fcc8

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
@@ -619,7 +619,7 @@ private module CallExprBaseMatchingInput implements MatchingInputSig {
619619
exists(Param p, int i |
620620
paramPos(this.getParamList(), p, i) and
621621
i = dpos.asPosition() and
622-
result = inferAnnotatedType(p.getPat(), path)
622+
result = p.getTypeRepr().(TypeMention).resolveTypeAt(path)
623623
)
624624
or
625625
exists(SelfParam self |

0 commit comments

Comments
 (0)