We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e8e855 commit 27b6f12Copy full SHA for 27b6f12
rust/ql/lib/codeql/rust/elements/internal/StmtListImpl.qll
@@ -33,7 +33,7 @@ module Impl {
33
AstNode getStmtOrExpr(int index) {
34
result = this.getStatement(index)
35
or
36
- index = max(int i | i = -1 or exists(this.getStatement(i))) + 1 and
+ index = this.getNumberOfStatements() and
37
result = this.getTailExpr()
38
}
39
0 commit comments