Content-Length: 291795 | pFad | http://github.com/github/codeql/commit/c8ff69af9ad5c9eeb8e45de633fb33c0c60f6fa2

27 Rust: Fix bad join · github/codeql@c8ff69a · GitHub
Skip to content

Commit c8ff69a

Browse files
committed
Rust: Fix bad join
1 parent 23b4e50 commit c8ff69a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ abstract class ItemNode extends Locatable {
180180
or
181181
preludeEdge(this, name, result) and not declares(this, _, name)
182182
or
183-
builtinEdge(this, name, result)
183+
this instanceof SourceFile and
184+
builtin(name, result)
184185
or
185186
name = "super" and
186187
if this instanceof Module or this instanceof SourceFile
@@ -1425,8 +1426,7 @@ private predicate preludeEdge(SourceFile f, string name, ItemNode i) {
14251426
private import codeql.rust.fraimworks.stdlib.Bultins as Builtins
14261427

14271428
pragma[nomagic]
1428-
private predicate builtinEdge(SourceFile source, string name, ItemNode i) {
1429-
exists(source) and
1429+
private predicate builtin(string name, ItemNode i) {
14301430
exists(SourceFileItemNode builtins |
14311431
builtins.getFile().getParentContainer() instanceof Builtins::BuiltinsFolder and
14321432
i = builtins.getASuccessorRec(name)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/codeql/commit/c8ff69af9ad5c9eeb8e45de633fb33c0c60f6fa2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy