Clippy gate: the eleven findings main's clippy cannot reach yet #1566
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1566
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1566"
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?
@RedLynx22 on GitHub · 2026-11-28 21:48 UTC · original
RedLynx22:ci-green-main→main· +18 −6 · 6 files · 1 commits · openWhat this fixes
main's CI fails on its own pushes (the last eleven pushes onmainare red, and theClippy, diagnostics build and Tests steps end up
skipped, so no pull request gets asignal). The visible failure is two findings in
crates/victory-shader/src/emit/lower.rs— #1517 clears exactly those. What nobody cansee is that clippy stops there: once
victory-shadercompiles,victory-gpuhas eleven morefindings under
-D warnings, nine in the lib and five more in its test target.This pull request covers those eleven, which no open pull request addresses:
gpunever readhost/send.rs:112pool::let_gonever usedpool.rs:96resource::host_pressure_reclaimednever usedresource.rs:3062too_many_arguments(8/7)resource.rs:2058(first_upload_decision)too_many_arguments(8/7)streamline/fsr.rs:525(before_present)manual_is_multiple_ofstreamline.rs:2217identity_opresidency.rs:257,resource.rs:5805,:5874,:5913assertions_on_constantsresource.rs:5919The three
dropping_referencesfindings inhost.rs:10800,:10843and:10903are#1459's, and are left alone here.
How
pool::let_goandresource::host_pressure_reclaimedare read only fromcopystat.rs,and that module is
#[cfg(all(windows, feature = "diagnostics"))]. They now carry#[cfg_attr(not(feature = "diagnostics"), allow(dead_code))], the form this crate alreadyuses (
pool.rs:218,resource.rs:3149), so the counters keep being written and thediagnostics build keeps reading them.
first_upload_decisiontakesevery input as a parameter on purpose so a decision can be replayed against a log line in
a test — and say so in a comment under
#[allow(clippy::too_many_arguments)].n % 120 == 0becomesn.is_multiple_of(120); four1 * MIB/1 * GIBbecome theconstant; the assertion on a constant becomes
const { assert!(…) }.Memory::gpuis annotated as held for a log that does not read it yet.No behaviour changes: no path is added, removed or reordered; the diff is 18 insertions and
6 deletions across six files, all of them annotations, a
cfg_attr, and no-op simplificationsin tests.
How it was tested
rust-toolchain.toml's pinned 1.98.1 on Windows 11 (26200), RTX 4080 SUPER, everything with--locked, againstupstream/main(923e38c):cargo clippy --workspace --all-targets --locked -- -D warnings→ exit 0, with #1517'stwo
lower.rsfindings and #1459's threedrop(presentation)changes applied beside thisbranch. Without them, the only findings left are exactly those five — this branch does not
touch
lower.rsorhost.rs.cargo clippy --workspace --all-targets --locked --all-features -- -D warnings→ exit 0(the
diagnosticsbuild, which compilescopystatandfaultbook).cargo test --workspace --lockedon this branch alone → 1305 tests pass, 0 failures(
victory-gpu550,victory-shader348,victory-formats57,victory-hle201, the restsmaller). The single failure is the pre-existing
xtaskpolicy::tests::repository_passes_policy:crates/victory-shader/src/emit/lower.rs: 667380 bytes exceeds the 655360-byte limit,which is #1429 and is handled by #1493 (raise the limit) or #1460 (split the lowering
tests).
cargo xtask policyon this branch reports that violation and nothing else.So with #1517 + #1459 + this, both clippy steps go green; the Tests step additionally needs
#1493 or #1460.
c846fcbe57tof6e5110bd2@RedLynx22 on GitHub · 2026-11-29 04:23 UTC · original
Rebased onto
mainat568c5e5and re-measured with the pinned 1.98.1,--locked:cargo clippy --workspace --all-targets --locked -- -D warningsonmainalone: one finding,manual_checked_divatlower.rs:2356— that is #1517's.dropping_referencesinhost.rs— #1459's. Both clippy variants (-D warningsand--all-features) exit 0 with this branch + #1517 + #1459.main: the deadgpufield,pool::let_go,resource::host_pressure_reclaimed, the two argument-count findings (one is now 9/7, the other 8/7),manual_is_multiple_of, the fouridentity_ops and the constant assertion.Note on the Tests step:
lower.rshas grown to 711,512 bytes against the 655,360-byte limit, so the step still needs #1493 (raise the limit to 768 KiB) or #1460 (move the lowering tests out, which brings it back under). Nothing here touches that file.@trustno1-coder on GitHub · 2026-11-29 08:28 UTC · original
Thank you! An earlier version of this pull request was merged into main with its original commits and is part of v2026.11.29.01, where you are credited. GitHub does not show it as merged because new commits were pushed here after that merge. It stays open so those newer commits can be looked at next.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.