Commit 18dc944
authored
fix(native): restore cargo test --lib green (#978)
Three pre-existing failures surfaced by `cargo test --lib`, none of
which CI catches (CI only runs `cargo check --workspace`):
- `tree-sitter-scala 0.25` and `tree-sitter-swift 0.7` emit ABI-15
grammars, but the workspace pins `tree-sitter = "0.24"` (supports up
to ABI-14). Loading either grammar raised `LanguageError { version:
15 }`, breaking all 10 Scala/Swift extractor tests. Downgrade to the
last 0.24-compatible releases (0.24.1 / 0.6.0).
- `BuildSettings` derived `Default`, which gave `incremental: false`
via `bool::default()`. `BuildConfig::build` is `#[serde(default)]`,
so deserializing `{}` fell through to `BuildSettings::default()` and
disagreed with the `#[serde(default = "default_true")]` field
attribute. Implement `Default` manually so both paths agree.
Full suite now: 176 passed, 0 failed (was 165 passed, 11 failed).
docs check acknowledged — change is an internal grammar-crate
downgrade and a Default-impl bug fix; no user-facing API, language
support, or architecture change.1 parent 30c8564 commit 18dc944
3 files changed
Lines changed: 20 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
38 | 50 | | |
39 | 51 | | |
40 | 52 | | |
| |||
0 commit comments