Skip to content

Commit ecd80fb

Browse files
committed
Rust: fix QL compilation errors
1 parent a7a887c commit ecd80fb

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

rust/ql/src/queries/diagnostics/UnresolvedMacroCalls.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
import rust
99

1010
from MacroCall mc
11-
where not mc.hasExpanded()
11+
where not mc.hasMacroCallExpansion()
1212
select mc, "Macro call was not resolved to a target."

rust/ql/src/queries/summary/Stats.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ predicate extractionStats(string key, int value) {
136136
or
137137
key = "Macro calls - total" and value = count(MacroCall mc)
138138
or
139-
key = "Macro calls - resolved" and value = count(MacroCall mc | mc.hasExpanded())
139+
key = "Macro calls - resolved" and value = count(MacroCall mc | mc.hasMacroCallExpansion())
140140
or
141-
key = "Macro calls - unresolved" and value = count(MacroCall mc | not mc.hasExpanded())
141+
key = "Macro calls - unresolved" and value = count(MacroCall mc | not mc.hasMacroCallExpansion())
142142
}
143143

144144
/**

rust/ql/src/queries/telemetry/DatabaseQuality.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ module CallTargetStats implements StatsSig {
3030
}
3131

3232
module MacroCallTargetStats implements StatsSig {
33-
int getNumberOfOk() { result = count(MacroCall c | c.hasExpanded()) }
33+
int getNumberOfOk() { result = count(MacroCall c | c.hasMacroCallExpansion()) }
3434

35-
additional predicate isNotOkCall(MacroCall c) { not c.hasExpanded() }
35+
additional predicate isNotOkCall(MacroCall c) { not c.hasMacroCallExpansion() }
3636

3737
int getNumberOfNotOk() { result = count(MacroCall c | isNotOkCall(c)) }
3838

rust/ql/src/queries/unusedentities/UnusedVariable.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class IncompleteCallable extends Callable {
2525
IncompleteCallable() {
2626
exists(MacroExpr me |
2727
me.getEnclosingCallable() = this and
28-
not me.getMacroCall().hasExpanded()
28+
not me.getMacroCall().hasMacroCallExpansion()
2929
)
3030
}
3131
}

0 commit comments

Comments
 (0)