Skip to content

Commit c58a450

Browse files
committed
Revert "wip"
This reverts commit 0f72015.
1 parent b09acdd commit c58a450

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

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

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -334,14 +334,7 @@ class CrateItemNode extends ItemNode instanceof Crate {
334334

335335
override TypeParam getTypeParam(int i) { none() }
336336

337-
override string getCanonicalPath(Crate c) {
338-
c = this and
339-
result = Crate.super.getName() and
340-
not exists(FunctionItemNode main |
341-
main.getImmediateParent() = this.getModuleNode() and
342-
main.getName() = "main"
343-
)
344-
}
337+
override string getCanonicalPath(Crate c) { c = this and result = Crate.super.getName() }
345338

346339
override string getCanonicalPathPrefixFor(Crate c, ItemNode child) {
347340
exists(ModuleLikeNode m |

0 commit comments

Comments
 (0)