mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust: Add variable capture consistency query
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* @name Variable capture data flow inconsistencies
|
||||
* @description Lists the variable capture data flow inconsistencies in the database. This query is intended for internal use.
|
||||
* @kind table
|
||||
* @id rust/diagnostics/variable-capture-data-flow-consistency
|
||||
*/
|
||||
|
||||
import codeql.rust.dataflow.internal.DataFlowImpl::VariableCapture::Flow::ConsistencyChecks
|
||||
@@ -0,0 +1,5 @@
|
||||
variableAccessAstNesting
|
||||
| test.rs:396:26:396:26 | b | test.rs:409:28:414:9 | { ... } | CapturedVariable access is not nested in the defining callable |
|
||||
| test.rs:409:23:409:25 | foo | test.rs:409:28:414:9 | { ... } | CapturedVariable access is not nested in the defining callable |
|
||||
consistencyOverview
|
||||
| CapturedVariable access is not nested in the defining callable | 2 |
|
||||
@@ -0,0 +1,4 @@
|
||||
variableAccessAstNesting
|
||||
| variables.rs:436:13:436:13 | i | variables.rs:437:17:439:5 | { ... } | CapturedVariable access is not nested in the defining callable |
|
||||
consistencyOverview
|
||||
| CapturedVariable access is not nested in the defining callable | 1 |
|
||||
Reference in New Issue
Block a user