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

Predicate Flow::ConsistencyChecks::uniqueDefiningScope

Holds if captured variable v does not have exactly one defining callable, as described by msg.

Import path

import codeql.dataflow.VariableCapture
predicate uniqueDefiningScope(CapturedVariable v, string msg)