Skip to content

Commit 04926df

Browse files
committed
Rust: Add rust/diagnostics/unresolved-macro-calls diagnostic query.
1 parent 0d1bd8a commit 04926df

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* @name Unresolved Macro Calls
3+
* @description List all macro calls that were not resolved to a target.
4+
* @id rust/diagnostics/unresolved-macro-calls
5+
*/
6+
7+
import rust
8+
9+
from MacroCall mc
10+
where not mc.hasExpanded()
11+
select mc, "Macro call was not resolved to a target."
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| my_macro.rs:17:9:17:27 | MacroCall | Macro call was not resolved to a target. |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
queries/diagnostics/UnresolvedMacroCalls.ql

0 commit comments

Comments
 (0)