CodeQL library for Rust
codeql/rust-all 0.2.27 (changelog, source)
Search

Predicate Flow::ConsistencyChecks::closureAliasMustBeInSameScope

Holds if access is an alias of closure expression ce outside the lexical scope of ce, as described by msg.

Import path

import codeql.dataflow.VariableCapture
predicate closureAliasMustBeInSameScope(ClosureExpr ce, Expr access, string msg)