mirror of
https://github.com/github/codeql.git
synced 2026-04-23 07:45:17 +02:00
Merge pull request #19265 from hvitved/rust/crate-graph-self-crate-ref
This commit is contained in:
@@ -784,6 +784,10 @@ private predicate crateDependencyEdge(ModuleLikeNode m, string name, CrateItemNo
|
||||
// entry/transitive source file
|
||||
m = c.getASourceFile()
|
||||
)
|
||||
or
|
||||
// paths inside the crate graph use the name of the crate itself as prefix,
|
||||
// although that is not valid in Rust
|
||||
dep = any(Crate c | name = c.getName() and m = c.getModule())
|
||||
}
|
||||
|
||||
private predicate useTreeDeclares(UseTree tree, string name) {
|
||||
|
||||
Reference in New Issue
Block a user