No local toolchain pin: dev-box stable (1.99.0) already disagrees with CI's 1.99.1 — clippy fires chunks_exact_to_as_chunks on one and not the other

未关闭 适合新手
#146 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
rust

调研方向

阅读 .github/workflows/ci.yml 和 xtask coverage 中与工具链相关的覆盖率警告。将建议的 pin 添加到 rust-toolchain.toml,使其与 CI 的 1.99.1 匹配。本地运行 cargo run -p xtask -- ci 使用与 CI 相同的工具链即为完成。

由索引模型根据 Issue 内容生成。

描述

ci

Evidence (2026-11-13). CI pins toolchain: 1.99.1 (.github/workflows/ci.yml, the #135 fix), but the repo carries no rust-toolchain.toml, so a dev box runs whatever its rustup default is. On this box the default stable is 1.99.0, and the two toolchains already disagree:

  • cargo run -p xtask -- ci on 1.99.0 fails clippy on crates/engine/src/catalog/mask.rs:311 and :1292 (clippy::chunks_exact_to_as_chunks, -D warnings), while the same code passes CI's clippy 1.99.1 — the lint fires on .0 and not on .1.
  • xtask coverage already warns about the mismatch: "measured with rustc 1.99.0, not the rustc 1.99.1 the floors were measured with" (and the floors are toolchain-bound: 1.99.0 → 81.9/79.0 vs 1.99.1 → 81.9/78.9).

So a contributor can have a locally-red gate that CI ignores, or a locally-green gate CI rejects, purely from the default toolchain. Proposal: add rust-toolchain.toml pinned to 1.99.1 (matching #135's CI pin and the coverage floors' toolchain), so cargo run -p xtask -- ci means the same thing everywhere; bump the pin and CI's toolchain: in the same change whenever the floors are re-measured.

主要语言
Rust
星标
11
派生
1
平均合并
13 小时 16 分钟
30 天内合并 PR
38

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aliasfoxkde/FireCraft 的其他 Issue

查看 aliasfoxkde/FireCraft 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。