jouleclaw-omni: declare 23 modules that were compiled by nothing #314
Loading…
Reference in a new issue
No description provided.
Delete branch "tidy/clippy-sweep"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Twenty-five source files in this crate were named by no
modline, so they were not in the build at all — roughly 19,000 lines that nothing type-checked, tested or linted.scripts/check-orphan-sources.pypinned them as a baseline so the count could only fall. This is that fall: 25 → 1.The surprise is how little it costs. Twenty-three compile clean, and the two that do not are blocked by facts outside the code:
video_decode.rswantsffmpeg_next, which is not a dependency (extern crate ffmpeg_next→ E0463). A system library and a licensing choice, so it stays undeclared — the baseline now holds it alone, with the reason written beside it.fusion.rshas every one of itsuselines behind#[cfg(feature = "metal")]while the items needing those types do not, so a default build loses the imports and keeps the code: 31 unresolved types. It only ever compiled with that feature on. Now gated the same way, asgpu_opsand thesana_wmdraft already are.sana_wm_gpu_dispatchers_draft.rsis gated likewise — it importscrate::hal::metal, which is#[cfg(feature = "metal")].Verified on the build host, rebased onto current main
With
--keep-goingthroughout, so an early error cannot hide what is behind it:The one cost, split honestly
Of those 3959 clippy warnings, 1412 come from the newly-declared files and 2547 were already there. The new ones are almost entirely pedantic-tier style —
doc_markdown554,redundant_closure_for_method_calls292,cast_possible_truncation286 — which this crate opts into. The only substantive category is 28unused_imports, left for a follow-up rather than mixed into a declaration-only change; some unused imports elsewhere in this tree arecfg-gated and live in other configurations, so they need checking one at a time, not a sweep. Nothing here can break a build: the crate carries no#![deny(warnings)].Separately, and not from this change
--features metaldoes not compile onmainat all — 3063 errors, concentrated in files that were already declared (hunyuan3d.rs300,audiogen.rs269,trellis.rs213). Measured onorigin/mainbefore this change, so it is pre-existing. No CI job builds that feature, which is how it drifted this far.🤖 Generated with Claude Code
dcharlot referenced this pull request2026-10-19 02:32:47 -04:00