Skip to content

lints: seven lints the mac crates cleared become deny - #922

Merged
midagedev merged 2 commits into
mainfrom
mac-lint7
Oct 28, 2026
Merged

midagedev merged 2 commits into
mainfrom
mac-lint7

Conversation

@midagedev

Copy link
Copy Markdown
Owner

Seven clippy lints become deny: default_trait_access, implicit_clone, manual_let_else, match_wildcard_for_single_variants, needless_for_each, redundant_clone, string_add. The mac crates already had no hits for them.

Since main moved, it gained two hits. Both are in #[cfg(test)] modules, and the first commit fixes them:

  • crates/model-hf/src/cut.rs:3120: a redundant clone;
  • crates/placement/src/placement/ctx_ask.rs:643: a wildcard that matches one variant.

Evidence:

  • just remote-static origin/main (second Mac): every step rc 0, including lint (ratchet 0) and combos (84 shapes, 0 red).
  • recipes.py affected: the lint table selects no gate. The two edits are test-module code, so no gate binary changes. Their own tests are green: cargo test -p bloomery-placement --lib ctx_ask (10 passed), cargo test -p bloomery-model-hf --bin fixture cut (13 passed).

AI use: written and checked with Claude Code.

🤖 Generated with Claude Code

https://claude.ai/code/session_01X1hsQfNpqr2jqmpYe8SFXd

midagedev and others added 2 commits October 28, 2026 23:24
redundant_clone, string_add, default_trait_access, manual_let_else, needless_for_each,
match_wildcard_for_single_variants and implicit_clone have 0 spans (the mac crates' 61 cleared in #904), so each is
deny (docs/rust-quality.md §9). R37, R39 and R40 state them as deny.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01X1hsQfNpqr2jqmpYe8SFXd
@midagedev
midagedev enabled auto-merge (rebase) October 28, 2026 14:27
@github-actions github-actions Bot added documentation Improvements or additions to documentation placement Placement planning: crates/placement tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo labels Oct 28, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: CLEAN: seven lints move to deny with no remaining hit I could find, the two test-module edits keep behavior, and the doc counts match.

Checked

  • Duplicates: 0 new functions, types or constants; dryer reported 0 pairs.
  • Complexity: crapper flagged no function.
  • Silent failure: 2 sites followed. ctx_ask.rs:643 held @ Probe::Holds(_) names the only other variant of Probe (Holds, Short), so the arm is exhaustive and a new variant now breaks the match (R40). cut.rs:3120 before is not read after the move; want is the only later user.
  • Remaining hits: I read every site the old R37 to R40 text listed as left (jinja/src/lib.rs:3023 and :1199, metal/src/kernels/header.rs:139, serve/src/api.rs:6769 and :6770). Each is already fixed in the tree. I did not run clippy; the PR body's Mac lint run (ratchet 0) is the evidence for the Mac-only code.
  • Docs: R37 to R40 now say deny, 0 and drop the "not in the table yet" and "left" sentences. They match the seven new lines in Cargo.toml.
  • Tests: no new or changed assertion; both edits are compile-level changes in test code, so no mutant applies.
  • Gates: no band, tolerance or KNOWN_DIVERGENCE moved. Lint levels only get stricter, so no PIN is needed.
  • Hot path: none touched (test modules, lint table, docs).
  • Escape catalog: no pattern matched (no shell or tool code in the diff).

🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)

@midagedev
midagedev merged commit 46eb3ba into main Oct 28, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation placement Placement planning: crates/placement tools Tools, recipes, CI and the toolchain: tools/, justfile, .github/, Cargo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant