Update rust/ql/lib/codeql/rust/controlflow/internal/Completion.qll

Co-authored-by: Simon Friis Vindum <simonfv@gmail.com>
This commit is contained in:
Arthur Baars
2024-10-14 15:20:43 +02:00
committed by GitHub
parent 867c8a7fa6
commit ae7afa7aff

View File

@@ -139,7 +139,7 @@ private predicate isExhaustiveMatch(Pat pat) {
// `match` expressions must be exhaustive, so last arm cannot fail
pat = any(MatchExpr me).getLastArm().getPat()
or
// macro patterns is exhaustive if its expansion is
// macro invocations are exhaustive if their expansion is
pat = any(MacroPat mp | isExhaustiveMatch(mp.getMacroCall().getExpanded()))
or
// parameter patterns must be exhaustive