Skip to content

Commit 8cd357a

Browse files
committed
Rust: Fix type inference for library parameters
1 parent 1e9520c commit 8cd357a

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
@@ -654,7 +654,7 @@ private module CallExprBaseMatchingInput implements MatchingInputSig {
654654
exists(Param p, int i |
655655
paramPos(this.getParamList(), p, i) and
656656
i = dpos.asPosition() and
657-
result = inferAnnotatedType(p.getPat(), path)
657+
result = p.getTypeRepr().(TypeMention).resolveTypeAt(path)
658658
)
659659
or
660660
exists(SelfParam self |

0 commit comments

Comments
 (0)