Issue #1412: Clear the needless-clone warnings (NK1350) in our own .nika code, then drop clippy::clone_on_copy on mod tools

Open and answer this issue on GitHub.

ready · opened 2026-11-08 · updated 2026-11-10 · 0 comments

Found

Split out of #1318: its step 3 (546 sites in 118 files under crates/nikaia-std/src/tools, plus scripts/ and packages/) is far larger than one builder run fits (the builder’s report on #1318, 2026-11-08). #1318 now builds only the warning NK1350 and its tests.

To build

Waits for #1318 (the warning NK1350). Then, one run per file group, the largest first (text_tiers, view_changes, buffers, check_takes, views, check_numbers5, types, traits, then the rest):

  1. Run nikaia check over the group and clear every NK1350: delete the .clone() or hand the value itself, as the warning’s help says.
  2. Re-lower (lower-std and its fixpoint) and commit per group.
  3. When no NK1350 is left in crates/nikaia-std/src/tools, remove clippy::clone_on_copy from the allow list on mod tools in crates/nikaia-std/src/lib.rs (needs kind a of #1318 built).
  4. The same over scripts/*.nika and packages/.

Done when


Generated by Claude Code

Back to Open Issues