Skip to content

Commit bafef79

Browse files
committed
Rust: Add extraction error consistency query
1 parent a017f92 commit bafef79

File tree

7 files changed

+25
-0
lines changed

7 files changed

+25
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import codeql.rust.Diagnostics
2+
3+
query predicate extractionError(ExtractionError ee) { any() }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| gen_expr_stmt.rs:6:13:6:12 | expected SEMICOLON |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| gen_if_expr.rs:12:6:12:5 | expected SEMICOLON |
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
| gen_prefix_expr.rs:5:16:5:15 | expected SEMICOLON |
2+
| gen_prefix_expr.rs:6:18:6:17 | expected SEMICOLON |
3+
| gen_prefix_expr.rs:7:17:7:16 | expected SEMICOLON |
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
| lib.rs:3:9:3:8 | expected `;` or `{` |
2+
| lib.rs:3:9:3:8 | expected an item |
3+
| lib.rs:3:21:3:20 | expected BANG |
4+
| lib.rs:3:21:3:20 | expected `{`, `[`, `(` |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
| test.rs:26:35:26:34 | expected `,` |
2+
| test.rs:26:35:26:34 | missing type for function parameter |
3+
| test.rs:26:37:26:36 | missing type for function parameter |
4+
| test.rs:40:38:40:37 | expected `,` |
5+
| test.rs:40:38:40:37 | missing type for function parameter |
6+
| test.rs:40:40:40:39 | missing type for function parameter |
7+
| test.rs:122:43:122:42 | expected type |
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
| does_not_compile.rs:2:6:2:5 | expected SEMICOLON |
2+
| does_not_compile.rs:2:9:2:8 | expected SEMICOLON |
3+
| does_not_compile.rs:2:13:2:12 | expected SEMICOLON |
4+
| does_not_compile.rs:2:21:2:20 | expected SEMICOLON |
5+
| does_not_compile.rs:2:26:2:25 | expected SEMICOLON |
6+
| does_not_compile.rs:2:32:2:31 | expected field name or number |

0 commit comments

Comments
 (0)