Skip to content

M0019 toolchain-pinned

Rule: The repo pins its toolchain in rust-toolchain.toml.

Code M0019 (stable, never reused)
Id toolchain-pinned
Category repo
Source spirit_level
Fix by hand

Level per tier

Tier Level Reason
small off
small-workspace off
medium warn every PC and the gate build with the same compiler
big deny every PC and the gate build with the same compiler
ai off
embedded off
ui off
egui off
units-strict off
units-paranoid off

Why

With rust-toolchain.toml every PC, every session and the gate build with the same compiler, so a new clippy lint or a changed inference never shows up on one machine only.

How to fix

[toolchain]
channel = "1.99.0"
components = ["clippy", "rustfmt"]

Configure

[lints.toolchain-pinned]
level = "deny"
reason = "why this project wants it at this level"

Allow one finding in the code with // spirit-level: allow(toolchain-pinned) <reason> (waivers); the code works there too, as in [lints.M0019].