We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2bfd732 + 46b4bad commit ef9f383Copy full SHA for ef9f383
rust/ql/lib/codeql/rust/controlflow/internal/Splitting.qll
@@ -71,7 +71,13 @@ module ConditionalCompletionSplitting {
71
child = parent.(LogicalNotExpr).getExpr() and
72
childCompletion.getDual() = parentCompletion
73
or
74
- childCompletion = parentCompletion and
+ (
75
+ childCompletion = parentCompletion
76
+ or
77
+ // needed for `let` expressions
78
+ childCompletion.(MatchCompletion).getValue() =
79
+ parentCompletion.(BooleanCompletion).getValue()
80
+ ) and
81
(
82
child = parent.(BinaryLogicalOperation).getAnOperand()
83
0 commit comments