Repository navigation
Diagnostics-only barrier stats: six needless borrows the all-features gate refuses - #3086
Open
TheSovietWaffle wants to merge 1 commit into
Open
TheSovietWaffle wants to merge 1 commit into
TheSovietWaffle wants to merge 1 commit into
Conversation
This was referenced Nov 29, 2026
Open
1 task done
1 task done
This was referenced Nov 29, 2026
1 task done
…needless borrows)
TheSovietWaffle
force-pushed
the
fix/diagnostics-gate
branch
from
November 30, 2026 00:30
ff26bab to
4114448
Compare
moritz-eckhard-nickel
added a commit
to moritz-eckhard-nickel/VIctory-NVIDIA
that referenced
this pull request
Nov 30, 2026
…: six needless borrows the all-features gate refuses) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The build half of this is in
mainnow (41adb55, "Diagnostics build compiles again"): thembhelper inlog_heap_elsewhereandself::timing()at the three submission sites. What is left is the second gate: with the diagnostics feature on,clippy -D warningsrefuses sixbarstat::rbcalls that pass a reference to an already-borrowed list.What it changes
Six diagnostics-only barrier-stat calls pass the list they already have:
crates/victory-gpu/src/host.rs: twocrate::barstat::rb(&list, …)in the read-back capture.crates/victory-gpu/src/compose.rs: fourrb(&l, …)/rb(&cmds, …)in the display-plane tests.barstat::rbtakes&ID3D12GraphicsCommandList, so the extra&is a reference to a reference;clippy::needless_borrowsrefuses it under-D warnings. They sit behindfeature = "diagnostics", so no earlier lint run could see them: the plain Clippy step never compiles them, and the--all-featuresstep never ran while the build was broken.How it was tested
cargo clippy -p victory-gpu --all-targets --all-features --locked -- -D warnings: the six errors before, none after. The one remainingneedless_borrowsin that run iscrates/victory-gpu/src/list.rs:2692(handles), which is not abarstatcall and not touched here.cargo check -p victory-gpu --tests --profile diag --features diagnostics:Finished(with 41adb55 in the base).&removals in diagnostics-only code.Checked for overlap
barstat. Related: CI: repair Clippy gate after 11.29.01 combine #2792 and chore(ci): fix workspace clippy -D warnings, diagnostics build, and stale tests on main #3385 repair the first Clippy gate onmain(unused imports and the like, Main green again: unwind_copy only with diagnostics, the lane-read GPU test returns with no hardware device #2019); Clippy: main's other 29 victory-gpu and victory-hle findings (with #2019 and #2486, the gate is clean) #2772 covers othervictory-gpufindings, includinglist.rs:2692; none removes these six borrows.