Skip to content

Commit 73dca4e

Browse files
committed
Revert "wip"
This reverts commit 0f72015.
1 parent a14fe8b commit 73dca4e

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
@@ -320,14 +320,7 @@ class CrateItemNode extends ItemNode instanceof Crate {
320320

321321
override TypeParam getTypeParam(int i) { none() }
322322

323-
override string getCanonicalPath(Crate c) {
324-
c = this and
325-
result = Crate.super.getName() and
326-
not exists(FunctionItemNode main |
327-
main.getImmediateParent() = this.getModuleNode() and
328-
main.getName() = "main"
329-
)
330-
}
323+
override string getCanonicalPath(Crate c) { c = this and result = Crate.super.getName() }
331324

332325
override string getCanonicalPathPrefixFor(Crate c, ItemNode child) {
333326
exists(ModuleLikeNode m |

0 commit comments

Comments
 (0)