Skip to content

Commit 4dcb7c1

Browse files
committed
WIP FIX
1 parent 2f88971 commit 4dcb7c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1960,7 +1960,7 @@ private module MethodResolution {
19601960
pragma[nomagic]
19611961
predicate hasTypeQualifiedCandidate(ImplItemNode impl) {
19621962
exists(getCallExprTypeQualifier(this, _)) and
1963-
CallExprImpl::getResolvedFunction(this) = impl.getASuccessor(_)
1963+
CallExprImpl::getResolvedFunction(this) = impl.getADescendant()
19641964
}
19651965

19661966
pragma[nomagic]
@@ -4133,8 +4133,8 @@ private module Debug {
41334133
Locatable getRelevantLocatable() {
41344134
exists(string filepath, int startline, int startcolumn, int endline, int endcolumn |
41354135
result.getLocation().hasLocationInfo(filepath, startline, startcolumn, endline, endcolumn) and
4136-
filepath.matches("%/sqlx.rs") and
4137-
startline = [56 .. 60]
4136+
filepath.matches("%/main.rs") and
4137+
startline = [607 .. 609]
41384138
)
41394139
}
41404140

0 commit comments

Comments
 (0)