Skip to content

Commit c17f50a

Browse files
committed
wip
1 parent 16cf2ce commit c17f50a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,11 @@ class ImplItemNode extends ImplOrTraitItemNode instanceof Impl {
639639
exists(Crate c2, TraitItemNode trait |
640640
trait = this.resolveTraitTy() and
641641
result = trait.getCanonicalPath(c2) and
642-
if this.hasCanonicalPath(c2) then c = c2 else c2 = c.getADependency()
642+
if this.hasCanonicalPath(c2)
643+
then c = c2
644+
else (
645+
c2 = c.getADependency() or c = c2.getADependency()
646+
)
643647
)
644648
}
645649

@@ -1508,8 +1512,8 @@ private module Debug {
15081512
private Locatable getRelevantLocatable() {
15091513
exists(string filepath, int startline, int startcolumn, int endline, int endcolumn |
15101514
result.getLocation().hasLocationInfo(filepath, startline, startcolumn, endline, endcolumn) and
1511-
filepath.matches("%/clean/types.rs") and
1512-
startline = [5, 350]
1515+
filepath.matches("%/term.rs") and
1516+
startline = [71]
15131517
)
15141518
}
15151519

0 commit comments

Comments
 (0)