We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b09acdd commit c58a450Copy full SHA for c58a450
1 file changed
rust/ql/lib/codeql/rust/internal/PathResolution.qll
@@ -334,14 +334,7 @@ class CrateItemNode extends ItemNode instanceof Crate {
334
335
override TypeParam getTypeParam(int i) { none() }
336
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
- }
+ override string getCanonicalPath(Crate c) { c = this and result = Crate.super.getName() }
345
346
override string getCanonicalPathPrefixFor(Crate c, ItemNode child) {
347
exists(ModuleLikeNode m |
0 commit comments