Clippy clean again, with and without --all-features (both CI clippy steps fail on main) #409
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/409"
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?
Imported from avatarmanz/VIctory-7900XTX. Originally posted by NerYtheLonesomeHearthian on 2026-11-27T00:43:18Z.
Both clippy steps in
ci.ymlcurrently fail onmain(126acb3): 8 errors without features and 6 with--all-features. This fixes all of them at the source without#[allow]or#[expect]:crates/victory-gpu/src/list.rs: Gatepub(crate) fn totals()with#[cfg(all(windows, feature = "diagnostics"))]to match its sole caller (crate::popwatch), fixingdead_codein builds withoutdiagnostics.crates/victory-gpu/src/watch.rs: Pass&title_memory_changed(at, len)instead of&mut ...toopen(&Guards, ...)intitle_memory_remapped(clippy::unnecessary_mut_passed). The temporaryRwLockWriteGuardstill lives to the end of the statement, so lock exclusivity and lifetime are unchanged.crates/victory-loader/src/descriptor_sites.rs(tests): Add explicittransmute::<usize, F>annotations at lines 494 and 559 (clippy::missing_transmute_annotations).Note on overlap: this completes #362 against current
main(samewatch.rshunk, updateddescriptor_sites.rscovering both lines 494 and 559, pluslist.rs:1870).Verification
cargo xtask policy— pass (265 files ok)cargo clippy --workspace --all-targets --locked -- -D warnings— pass (exit 0)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings— pass (exit 0)cargo test -p victory-loader --lib -- descriptor_sites— pass (4 passed; 0 failed)$env:VICTORY_DXIL = "..."; cargo test --workspace -- --test-threads=1—victory-gpu(384 passed; 0 failed),victory-loader(52 passed; 0 failed), and all preceding crates pass; stops in untouchedvictory-shaderat the known RDNA 4amdxc64.dllcrash inemit::size_tests::the_record_count_of_a_structured_buffer_read_by_index(#8).Implemented with Claude Code (Opus 5.5), independently audited with Gemini 4 Carbon, tested in Win11 Hyper-V VM (ez-GPU-PV) on RX 9070 XT / 5800X3D. Because graphics runs are not meaningful on a Hyper-V paravirtualized GPU, verification here covers static analysis (
clippy) and unit tests only.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.