Skip to content

Commit fc298b2

Browse files
committed
Rust: address comment
1 parent 5f45402 commit fc298b2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

rust/ql/lib/codeql/rust/controlflow/internal/ControlFlowGraphImpl.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,11 @@ class IfExprTree extends PostOrderTree instanceof IfExpr {
273273
}
274274
}
275275

276-
class FormatArgsExprTree extends StandardPostOrderTree instanceof FormatArgsExpr {
276+
class FormatArgsExprTree extends StandardPostOrderTree, FormatArgsExpr {
277277
override AstNode getChildNode(int i) {
278-
i = -1 and result = super.getTemplate()
278+
i = -1 and result = this.getTemplate()
279279
or
280-
result = super.getArg(i).getExpr()
280+
result = this.getArg(i).getExpr()
281281
}
282282
}
283283

@@ -441,14 +441,14 @@ class MacroCallTree extends ControlFlowTree, MacroCall {
441441
override predicate last(AstNode last, Completion c) {
442442
last(this.getExpanded(), last, c)
443443
or
444-
not exists(super.getExpanded()) and
444+
not exists(this.getExpanded()) and
445445
last = this and
446446
completionIsValidFor(c, last)
447447
}
448448

449449
override predicate succ(AstNode pred, AstNode succ, Completion c) { none() }
450450

451-
override predicate propagatesAbnormal(AstNode child) { none() }
451+
override predicate propagatesAbnormal(AstNode child) { child = this.getExpanded() }
452452
}
453453

454454
class MacroExprTree extends StandardPostOrderTree, MacroExpr {

0 commit comments

Comments
 (0)