Skip to content

Commit 1e24183

Browse files
committed
WIP DEBUG
1 parent 04f43b4 commit 1e24183

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,8 +1760,8 @@ private module Debug {
17601760
private Locatable getRelevantLocatable() {
17611761
exists(string filepath, int startline, int startcolumn, int endline, int endcolumn |
17621762
result.getLocation().hasLocationInfo(filepath, startline, startcolumn, endline, endcolumn) and
1763-
filepath.matches("%/main.rs") and
1764-
startline = 52
1763+
filepath.matches("%/module_info.rs") and
1764+
startline = [131 .. 157]
17651765
)
17661766
}
17671767

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2621,8 +2621,8 @@ private module Debug {
26212621
private Locatable getRelevantLocatable() {
26222622
exists(string filepath, int startline, int startcolumn, int endline, int endcolumn |
26232623
result.getLocation().hasLocationInfo(filepath, startline, startcolumn, endline, endcolumn) and
2624-
filepath.matches("%/sqlx.rs") and
2625-
startline = [56 .. 60]
2624+
filepath.matches("%/module_info.rs") // and
2625+
// startline = [56 .. 60]
26262626
)
26272627
}
26282628

@@ -2636,6 +2636,11 @@ private module Debug {
26362636
result = resolveCallTarget(c)
26372637
}
26382638

2639+
predicate debugResolveCallTargetFin(MethodCallExpr c) {
2640+
c = getRelevantLocatable() and
2641+
c.getIdentifier().getText() = "get_module_info"
2642+
}
2643+
26392644
predicate debugConditionSatisfiesConstraint(
26402645
TypeAbstraction abs, TypeMention condition, TypeMention constraint
26412646
) {

0 commit comments

Comments
 (0)