Skip to content

chore: pin Rust toolchain to 1.96.0 (prevent floating-stable CI breakage)#31

Merged
Liorrr merged 1 commit into
masterfrom
chore/pin-rust-toolchain
Jun 19, 2026
Merged

chore: pin Rust toolchain to 1.96.0 (prevent floating-stable CI breakage)#31
Liorrr merged 1 commit into
masterfrom
chore/pin-rust-toolchain

Conversation

@Liorrr

@Liorrr Liorrr commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Why

The recent CI outage had a single root cause: CI used a floating dtolnay/rust-toolchain@stable. When GitHub's runners moved to Rust 1.96, new/strengthened clippy lints (sort_by_key, redundant into_iter, collapsible_match) turned already-committed code into hard -D warnings errors — breaking master and every branch with zero code changes. Local dev was on an older stable, so local clippy silently disagreed with CI.

What

Pin the toolchain in one place that both local and CI honor:

  • rust-toolchain.tomlchannel = "1.96.0" + clippy/rustfmt components. rustup reads this on every cargo invocation, so local clippy is now identical to CI (the exact thing that made the first fix attempt falsely pass locally).
  • .github/workflows/ci.yml — all four dtolnay/rust-toolchain@stable steps pinned to @1.96.0.

1.96.0 is exactly what stable currently resolves to (hash ac68faa20), so this keeps the currently-green state — no new lints introduced by this PR.

Bumping later

Deliberate, not automatic: change channel in rust-toolchain.toml and the four @1.96.0 pins together in one PR, then fix any new lints that release surfaces. (Documented in the toml header.)

Test plan

  • rustup resolves the repo to 1.96.0 via the toml locally
  • CI green on this PR (same jobs, now on a pinned toolchain)

Root cause of the recent CI breakage: CI used a floating
`dtolnay/rust-toolchain@stable`, so when the runners moved to Rust 1.96 the
new/strengthened clippy lints turned already-committed code into hard
`-D warnings` errors — breaking master and every branch with zero code changes.
Local dev was also on an older stable, so local clippy disagreed with CI.

Fix: pin the toolchain in one place that both local and CI honor.
- Add rust-toolchain.toml (channel 1.96.0 + clippy/rustfmt components); rustup
  reads this for every cargo invocation, so local == CI.
- Pin all four `dtolnay/rust-toolchain@stable` steps to `@1.96.0` to match.

Toolchain bumps are now deliberate: change both files together and fix any new
lints in the same PR.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Liorrr
Liorrr merged commit 9c8bdb6 into master Jun 19, 2026
12 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant