We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a834f35 commit 202a271Copy full SHA for 202a271
rust/ql/lib/codeql/rust/internal/PathResolution.qll
@@ -946,7 +946,7 @@ class TypeParamItemNode extends ItemNode instanceof TypeParam {
946
947
/** Holds if `item` has the name `name` and is a top-level item inside `f`. */
948
private predicate sourceFileEdge(SourceFile f, string name, ItemNode item) {
949
- item = f.getAnItem() and
+ item = f.(ModuleLikeNode).getAnItemInScope() and
950
name = item.getName()
951
}
952
0 commit comments