mirror of
https://github.com/github/codeql.git
synced 2026-04-20 06:24:03 +02:00
Update rust/ql/lib/codeql/rust/dataflow/internal/DataFlowImpl.qll
Co-authored-by: Tom Hvitved <hvitved@github.com>
This commit is contained in:
committed by
GitHub
parent
bb015cf56d
commit
33fe51da4e
@@ -1024,10 +1024,9 @@ module RustDataFlow implements InputSig<Location> {
|
||||
|
||||
/** Holds if `creation` is an expression that creates a lambda of kind `kind` for `c`. */
|
||||
predicate lambdaCreation(Node creation, LambdaCallKind kind, DataFlowCallable c) {
|
||||
exists(Expr cl |
|
||||
exists(ClosureExpr cl |
|
||||
cl = creation.asExpr().getExpr() and
|
||||
cl = c.asCfgScope() and
|
||||
cl instanceof ClosureExpr
|
||||
cl = c.asCfgScope()
|
||||
) and
|
||||
exists(kind)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user