Repository navigation
Commit 295fc87
committed
Rust: Avoid malformed parser fixture in code scanning
The new rust-analyzer version fixed a bug related to unicode parsing. As
at test for this, one of the `ra_ap_parser` crate contain a test fixture
with this invalid unicode.
The _current_ Rust extractor naturally inherits the parsing bug present
in the older rust-analyzer dependency that it uses.
When CI does Code Scanning on the _new_ Rust extractor with the _old_
Rust extractor the parsing bug is hit since the beforementioned test
fixture is extracted when extracting the Rust extractor through the
`ra_ap_parser` dependency.
As a temporaty workaroyund, we remove the test fixture from Cargo's
downloaded dependency source before extracting. This avoid the old
extractor failing in CI.
Once the updated extractor is running on CI we should be able to remove
this again.1 parent fab1660 commit 295fc87
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
| |||
0 commit comments