Commit e122c48
committed
build(rust): pin toolchain to 1.96.0 + fix the two 1.96-only clippy lints
Root-causes the recurring Build-Check skew. CI installs floating `stable`
(now 1.96) via dtolnay/rust-toolchain@stable, but local dev had drifted to an
older stable (1.94) whose clippy could not see two `collapsible_match` lints
1.96 flags -- so #85's clippy pass (run on 1.94) still left main Build-Check red.
- rust-toolchain.toml pins channel = "1.96.0" (+ clippy, rustfmt) so `cargo`
uses the SAME toolchain locally and in CI, removing the silent skew.
- Fix the two 1.96 `collapsible_match` lints (clippy --fix -> match guards),
behaviour-preserving:
* src/lsp/handlers/definition.rs (TypeDef goto-definition arm)
* src/vm/optimizer.rs (JumpIfFalse/JumpIfTrue nop-removal arm)
Verified with the pinned 1.96.0: `cargo clippy -- -D warnings` exit 0,
`cargo fmt --check` clean, `cargo test --lib` 173/173 passing.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013wg3Mtq2QFhYi4XVw1Z6z71 parent ab94e64 commit e122c48
3 files changed
Lines changed: 25 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
74 | 72 | | |
75 | 73 | | |
76 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| |||
0 commit comments