mirror of
https://github.com/github/codeql.git
synced 2026-02-11 20:51:06 +01:00
Merge pull request #21180 from hvitved/rust/fix-bad-join2
Rust: Fix bad join
This commit is contained in:
@@ -99,10 +99,11 @@ module Impl {
|
||||
*/
|
||||
cached
|
||||
predicate isFromMacroExpansion(AstNode n) {
|
||||
exists(AstNode macro |
|
||||
exists(AstNode macro, Location l |
|
||||
macro = getImmediatelyEnclosingMacroInvocation(n) and
|
||||
not n = getATokenTreeNode(macro) and
|
||||
not isAttributeMacroExpansionSourceLocation(macro, n.getLocation())
|
||||
l = n.getLocation() and
|
||||
not isAttributeMacroExpansionSourceLocation(macro, l)
|
||||
)
|
||||
or
|
||||
isFromMacroExpansion(pragma[only_bind_into](getImmediatelyEnclosingMacroInvocation(n)))
|
||||
|
||||
Reference in New Issue
Block a user