0155. Pin the Rust toolchain to 1.92.0
- Status: Proposed — in effect, pending the maintainer's confirmation
- Date: 2026-11-03
- Plan: M0.7, M0.8; PLAN.md open decision "Pinned Rust version"
- Review: none
Context
rust-toolchain.toml said
channel = "stable", so the gate's compiler was
whatever a host called stable: 1.92.0 on the owner's Mac, the
newest release in CI. AGENTS.md named rustc 1.85.1, the box
toolchain recorded at cp/9.3. Clippy disagrees across these
versions, so one tree passed the gate on one host and failed on
another. CI cannot settle it: runs currently stop before starting
(GitHub billing), so "pin once CI runs" has not arrived.
cargo clippy --workspace --all-targets -- -D warnings
at main b321a2b9 on the Mac (Apple M1, macOS 26.6):
| Toolchain | Result |
|---|---|
| 1.85.1 | ADR-0087's macOS-only subprocess 1.2.1 needs
rustc 1.88 and uses let-chains (E0658, even with
--ignore-rust-version) |
1.92.0, macOS and
--target x86_64-unknown-linux-gnu |
2 nonminimal_bool errors (modules.rs,
packages.rs) |
| 1.94.0 | the same 2 errors |
| 1.97.1, 1.98.0 | clean |
Decision
Pin channel = "1.92.0" with rustfmt and clippy,
rewrite the two nonminimal_bool sites with
Option::is_none_or (also clean on 1.98.0), and name
the version in AGENTS.md and the README. rustup reads the file on
every host, so lanes and CI use 1.92.0 even though CI's setup step
installs stable. Move the pin only through a superseding ADR that
reruns clippy and the gate on macOS and Linux.
Alternatives considered
- Keep
stable— the gate's verdict keeps depending on each host's update state. - 1.85.1, as AGENTS.md said — cannot build
subprocesson macOS; keeping it means replacing ADR-0087's dependency. - 1.97.1 or 1.98.0 — clean without code changes, but this Mac has only their Darwin standard library, so Linux-only code could not be linted for Linux here. 1.92.0 also ran the 2026-11-01 macOS acceptance and ADR-0087, and is what this Mac's sessions already use.
Consequences
Every host lints and tests with the same compiler. Hosts without 1.92.0 (the box was on 1.85.1 at cp/9.3) install it on first use; rustup does this unless auto-install is disabled. Standard library APIs and lints newer than 1.92 wait for a superseding ADR. AGENTS.md keeps its let-chain ban as a style rule, although 1.92 compiles let-chains; lifting it is a separate decision.