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.
2 parents 1c689d0 + 43e2017 commit 06b99b2Copy full SHA for 06b99b2
rust/ql/lib/codeql/rust/elements/internal/ElementImpl.qll
@@ -99,10 +99,11 @@ module Impl {
99
*/
100
cached
101
predicate isFromMacroExpansion(AstNode n) {
102
- exists(AstNode macro |
+ exists(AstNode macro, Location l |
103
macro = getImmediatelyEnclosingMacroInvocation(n) and
104
not n = getATokenTreeNode(macro) and
105
- not isAttributeMacroExpansionSourceLocation(macro, n.getLocation())
+ l = n.getLocation() and
106
+ not isAttributeMacroExpansionSourceLocation(macro, l)
107
)
108
or
109
isFromMacroExpansion(pragma[only_bind_into](getImmediatelyEnclosingMacroInvocation(n)))
0 commit comments