Skip to content

Commit c04ad75

Browse files
committed
Rust: Distinguish internal/external items in path resolution
1 parent 8786c3a commit c04ad75

File tree

4 files changed

+174
-147
lines changed

4 files changed

+174
-147
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ module Stages {
120120
or
121121
exists(resolvePath(_))
122122
or
123-
exists(any(ItemNode i).getASuccessor(_))
124-
or
125-
exists(any(ItemNode i).getASuccessorRec(_))
123+
exists(any(ItemNode i).getASuccessor(_, _))
126124
or
127125
exists(any(ImplOrTraitItemNode i).getASelfPath())
128126
or

0 commit comments

Comments
 (0)