File tree Expand file tree Collapse file tree 3 files changed +8
-1099
lines changed
lib/codeql/rust/elements/internal
test/library-tests/type-inference Expand file tree Collapse file tree 3 files changed +8
-1099
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,9 @@ module Impl {
70
70
*/
71
71
pragma [ nomagic]
72
72
predicate isFromMacroExpansion ( ) {
73
- exists ( MacroCall mc |
74
- MacroCallImpl:: isInMacroExpansion ( mc , this ) and
75
- not this = mc .getATokenTreeNode ( )
73
+ exists ( AstNode root |
74
+ MacroCallImpl:: isInMacroExpansion ( root , this ) and
75
+ not this = root . ( MacroCall ) .getATokenTreeNode ( )
76
76
)
77
77
}
78
78
Original file line number Diff line number Diff line change @@ -14,10 +14,12 @@ module Impl {
14
14
private import rust
15
15
16
16
pragma [ nomagic]
17
- predicate isInMacroExpansion ( MacroCall mc , AstNode n ) {
18
- n = mc .getMacroCallExpansion ( )
17
+ predicate isInMacroExpansion ( AstNode root , AstNode n ) {
18
+ n = root . ( MacroCall ) .getMacroCallExpansion ( )
19
19
or
20
- isInMacroExpansion ( mc , n .getParentNode ( ) )
20
+ n = root .( Adt ) .getDeriveMacroExpansion ( _)
21
+ or
22
+ isInMacroExpansion ( root , n .getParentNode ( ) )
21
23
}
22
24
23
25
// the following QLdoc is generated: if you need to edit it, do it in the schema file
You can’t perform that action at this time.
0 commit comments