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 8a35e15 commit 18ce8beCopy full SHA for 18ce8be
rust/ql/lib/codeql/rust/elements/internal/VariableImpl.qll
@@ -88,7 +88,7 @@ module Impl {
88
// exclude parameters from functions without a body as these are trait method declarations
89
// without implementations
90
not exists(Function f | not f.hasBody() and f.getParamList().getAParam().getPat() = p) and
91
- // exclude parameters from function pointers as well, which also lack a body
+ // exclude parameters from function pointer types (e.g. `x` in `fn(x: i32) -> i32`)
92
not exists(FnPtrType fp | fp.getParamList().getParam(_).getPat() = p)
93
}
94
0 commit comments