Skip to content

Commit

Permalink
Rust: fix CodeQL alert
Browse files Browse the repository at this point in the history
  • Loading branch information
aibaars committed Oct 11, 2024
1 parent b4bb24a commit 659ce6f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,9 @@ class MacroCallTree extends ControlFlowTree instanceof MacroCall {
override predicate last(AstNode last, Completion c) {
last(super.getExpanded(), last, c)
or
not exists(super.getExpanded()) and last = this
not exists(super.getExpanded()) and
last = this and
completionIsValidFor(c, last)
}

override predicate succ(AstNode pred, AstNode succ, Completion c) { none() }
Expand Down

0 comments on commit 659ce6f

Please sign in to comment.