We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a78211 + 284df7f commit f2f5739Copy full SHA for f2f5739
1 file changed
rust/ql/lib/codeql/rust/internal/PathResolution.qll
@@ -187,7 +187,12 @@ abstract class ItemNode extends Locatable {
187
this = result.(ImplOrTraitItemNode).getAnItemInSelfScope()
188
or
189
name = "crate" and
190
- this = result.(CrateItemNode).getASourceFile()
+ result =
191
+ any(CrateItemNode crate |
192
+ this = crate.getASourceFile()
193
+ or
194
+ this = crate.getModuleNode()
195
+ )
196
}
197
198
/** Gets the location of this item. */
0 commit comments