Commit ac27c20
Rust: fix consistency test failures from rust-analyzer upgrade
- Exclude macro-expanded and attribute paths from PathResolutionConsistency
(tokio::main and similar attribute macros resolve to multiple proc macro fns)
- Exclude "macro expansion failed" warnings from ExtractionConsistency
(compile_error! and undefined macros are expected to fail expansion)
- Update pre-existing consistency expectations (net multipleResolvedTargets)
- Update type-inference.expected for new RA results
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1bd0821 commit ac27c20
File tree
13 files changed
+69
-12
lines changed- rust/ql
- consistency-queries
- lib/codeql/rust/internal
- test
- extractor-tests/macro-expansion/CONSISTENCY
- library-tests
- dataflow/sources/net/CONSISTENCY
- type-inference
- query-tests
- diagnostics/CONSISTENCY
- security
- CWE-295/CONSISTENCY
- CWE-311/CONSISTENCY
- CWE-770/CONSISTENCY
- CWE-825/CONSISTENCY
- CWE-918/CONSISTENCY
13 files changed
+69
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 15 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3669 | 3669 | | |
3670 | 3670 | | |
3671 | 3671 | | |
3672 | | - | |
3673 | 3672 | | |
3674 | 3673 | | |
3675 | 3674 | | |
| |||
3680 | 3679 | | |
3681 | 3680 | | |
3682 | 3681 | | |
3683 | | - | |
3684 | 3682 | | |
3685 | 3683 | | |
3686 | 3684 | | |
| |||
12269 | 12267 | | |
12270 | 12268 | | |
12271 | 12269 | | |
12272 | | - | |
12273 | 12270 | | |
12274 | | - | |
12275 | | - | |
12276 | 12271 | | |
12277 | 12272 | | |
12278 | 12273 | | |
| |||
12289 | 12284 | | |
12290 | 12285 | | |
12291 | 12286 | | |
12292 | | - | |
12293 | 12287 | | |
12294 | | - | |
12295 | | - | |
12296 | 12288 | | |
12297 | 12289 | | |
12298 | 12290 | | |
| |||
15861 | 15853 | | |
15862 | 15854 | | |
15863 | 15855 | | |
| 15856 | + | |
| 15857 | + | |
| 15858 | + | |
| 15859 | + | |
| 15860 | + | |
| 15861 | + | |
| 15862 | + | |
| 15863 | + | |
| 15864 | + | |
| 15865 | + | |
| 15866 | + | |
| 15867 | + | |
| 15868 | + | |
| 15869 | + | |
| 15870 | + | |
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments