Repository navigation
Conversation
…r change `cargo clippy --workspace --all-targets --locked -- -D warnings` (CI gate 1) has 38 findings on main. trustno1-coder#2019 clears the five in victory-loader and victory-shader, trustno1-coder#2486 four in victory-gpu (font.rs's second '%', which clippy reports twice, `busy`, `adapter`). This clears the other 29, so with the three in, the gate has none. Written as clippy asks (same behaviour): - shader_cache.rs: unused `AtomicBool` import - panel.rs, pipeline/library.rs: `is_multiple_of` - list.rs: `handles` is already a slice - resource.rs: `unwrap_or` for a plain `match` on a local - gameinput.rs (2): `then_some` - compose.rs: `Composer::record` takes its eight arguments (allowed, as elsewhere in the tree) - streamline.rs: the buffer-count test is a `const` assertion - lib.rs, lifecycle.rs: the item after the test module moves above it - Cargo.toml: rust-version 1.89, which the code already needs (`File::try_lock` in pipeline/library.rs; the toolchain is 1.98.1) Unused since the 11.29.01 merge, kept and marked `#[allow(dead_code)]` with a note, not deleted, so whoever wires them back has them: Host::fetch_buffer with fetchmem::{sizes, buffer}, take_spare_wb, flush_all's MANY_CHUNK and its ahead snapshot, Shadow::nothing_new_with and watch::nothing_new_with, shadow::wide_chunk, HostHeap::mirror_for_pass, recycle::Kind::Card, memory::lock_memory, make::Queue::pop, and create_loose_compute with loose_compute, fspx_container and MAX_LOOSE_PART. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 task done
Open
1 task done
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it changes
Main's CI stops at its first step:
cargo clippy --workspace --all-targets --locked -- -D warningshas 38 findings on55d0691, so neither the diagnostics clippy step nor the tests run for any push or pull request.Two open PRs already clear some of them:
victory-loaderandvictory-shader.victory-gpu:font.rs's second'%'arm, which clippy reports twice, plusbusyandadapter.This clears the other 29, in
victory-gpuandvictory-hle, and touches none of the lines those two change. With the three in, the gate has no findings.Written as clippy asks, with the same behaviour:
shader_cache.rs:14AtomicBooldroppedhost/panel.rs:149,pipeline/library.rs:776manual_is_multiple_ofis_multiple_oflist.rs:2658needless_borrowhandlesis already a&[u64]resource.rs:2375unnecessary_lazy_evaluationsunwrap_or(amatchon a local)gameinput.rs:830, 876unnecessary_lazy_evaluationsthen_somecompose.rs:221too_many_arguments#[allow]onComposer::record, as on 48 other functions in the treestreamline.rs:3689assertions_on_constantsconstblocklib.rs:269,lifecycle.rs:1004items_after_test_modulepipeline/library.rs:90incompatible_msrvrust-version1.88 → 1.89.File::try_lockalready needs it, so the code doesn't build on 1.88 today. The toolchain is 1.98.1.Unused since the 11.29.01 merge: kept, not deleted. Each one gets
#[allow(dead_code)]and a one-line note. They look like wiring that got lost in the merge, not code nobody wants, so whoever puts them back has them:Host::fetch_bufferwithfetchmem::{sizes, buffer}: the fetch buffer that shrinks under memory pressure. This may be part of the memory handling you mentioned the next build restores.take_spare_wb(its tests still run) andflush_all'sMANY_CHUNKflush_all's ahead snapshot: it is still filled, but nothing reads it.Shadow::nothing_new_withandwatch::nothing_new_with, which took it, are unused too.shadow::wide_chunk(VICTORY_WIDE_CHUNK; its tests still run)HostHeap::mirror_for_pass(VICTORY_HEAP_LOOK_QUIET). The batch's ownmirror_for_passis the one that's called.recycle::Kind::Card,memory::lock_memory,make::Queue::popcreate_loose_computewithloose_compute,fspx_containerandMAX_LOOSE_PART: no device method slot namescreate_loose_computeIf you'd rather some of these were deleted, or wired back here, say which and I'll do it.
How it was tested
cargo clippy --workspace --all-targets --locked -- -D warningson55d0691gives 38 findings.x86_64-pc-windows-msvc) and in upstream's own CI workflow onwindows-latest: its Clippy step passes (run). The next step, Clippy, diagnostics build, then stops on the--all-featuresbuild errors this doesn't touch (copystat.rs'smb, thetimingshadowed inhost.rs), which Clippy -D warnings clean across the workspace (main's CI gate) #2048, The diagnostics build compiles again, and the frame replay plays recordings with aliasing barriers #2143 and gpu: the diagnostics profile compiles again (the missing mb, and timing's shadow) #2208 fix, so that run skipped the tests.cargo testpassed for the crates it touches: not run yet: CI skipped the step after the diagnostics build. The change is lints, attributes and two moved items, with no behaviour change. For reference, on the same basecargo testfails threevictory-formatsbcpack oracle tests (oracle_parity_*) that this doesn't touch.Checked for overlap
--all-featuresbuild, which this doesn't touch.