Skip to content

Commit 9c72a37

Browse files
committed
Rust: Avoid malformed parser fixture in code scanning
The nightly extractor currently panics when it indexes an intentionally malformed ra_ap_parser fixture. Remove only that fixture from Cargo's downloaded source before autobuild so the remaining dependency sources are still analyzed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 612c2b22-3121-4c83-9656-bb0f4abb2a8a
1 parent 0a9edcf commit 9c72a37

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/rust-analysis.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ jobs:
5757
languages: ${{ matrix.language }}
5858
config-file: ./.github/codeql/codeql-config.yml
5959

60+
- name: Remove malformed rust-analyzer parser fixture
61+
shell: bash
62+
run: |
63+
cargo fetch
64+
find "${CARGO_HOME:-$HOME/.cargo}/registry/src" \
65+
-path '*/ra_ap_parser-0.0.352/test_data/lexer/err/incomplete_frontmatter_before_unicode.rs' \
66+
-delete
67+
6068
- name: Autobuild
6169
uses: github/codeql-action/autobuild@main
6270

0 commit comments

Comments
 (0)