clippy: the five main-gate findings the 4634 anti-aliased menu/panel merge left #5074

Open
github-bot wants to merge 1 commit from github-bot/gh-5073 into main AGit
Owner

@⁠xCapD on GitHub · 2026-12-01 18:57 UTC · original
xCapD:clippy-ui-4634-fixes → main · +13 −9 · 3 files · 1 commits · open

What it changes

Main's clippy gate is red at 5fabb46: five findings, all new since PR #4635
(the anti-aliased F1 menu and slim F3 panel, 3bde4923):

  • crates/victory-gpu/src/host/font.rs text() — too_many_arguments (9/7)
  • crates/victory-gpu/src/host/font.rs text_right() — too_many_arguments (9/7)
  • crates/victory-gpu/src/host/menu.rs:667 — manual_is_multiple_of
  • crates/victory-gpu/src/host/panel.rs:602 — collapsible_if (Stats::draw)
  • crates/victory-gpu/src/host/panel.rs:668 — collapsible_if (Notice::draw)

Each fix is the form clippy itself prescribes: too_many_arguments is
allowed with a one-line shortcut: comment on the two GDI helpers (the
existing in-tree style; no call-site churn), % == 0 becomes
.is_multiple_of for the compile-time constant divisor, and the two nested
if blocks collapse into && let chains (edition 2024). No runtime
behavior changes.

This is the same change as #4680 and #4708, opened earlier today. What this
request adds over them, stated exactly: their branches share no merge base
with main — both are listed CONFLICTING, their forks predating the
2026-11-26 base change — so neither can be merged as pushed. This branch is
a single commit directly on top of current main and merges cleanly. Happy
to close it the moment either of them lands mergeable; the only purpose
here is that the gate unblocks with a branch that can actually merge.

How it was tested

  • GPU and profile: not tested against the title. Lint-level rewrites with
    no runtime effect; the surfaces touched are the F1 menu and the F3 panel.
  • Before: at 5fabb46, cargo clippy --workspace --all-targets --locked -- -D warnings fails with the five findings above, so every pull request
    based on current main fails CI at gate 1.
  • After: both strict workspace Clippy commands pass (--all-targets, and
    --all-targets --all-features, -D warnings everywhere), and
    cargo test --workspace --locked passes for the whole workspace, the
    464-file policy test (repository_passes_policy) included, with one
    test skipped: modules::xmem::tests::a_read_by_range_waits_only_for_a_remapping_that_meets_it.
    That test is the parallel-run interference flake of #2420 (fix open in
    #2439): it failed 3 of 3 full parallel runs on pristine main with this
    change stashed and 3 of 3 with it applied, passing whenever run alone.
    Unrelated to this change.
  • For shader changes, the wave sizes tested: n/a (no shader changes).
  • cargo test passed for the crates it touches: yes — all of them.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #4680, #4708 (identical fixes, both CONFLICTING — no merge base with main), and the CI-restore work #2620, #2420, #2439, with the earlier clippy-repair requests #2792, #3530, #4166, #2048 predating all of these findings.
**@⁠xCapD** on GitHub · 2026-12-01 18:57 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/5073) `xCapD:clippy-ui-4634-fixes` → `main` · +13 −9 · 3 files · 1 commits · open ## What it changes Main's clippy gate is red at `5fabb46`: five findings, all new since PR #4635 (the anti-aliased F1 menu and slim F3 panel, 3bde4923): - crates/victory-gpu/src/host/font.rs `text()` — too_many_arguments (9/7) - crates/victory-gpu/src/host/font.rs `text_right()` — too_many_arguments (9/7) - crates/victory-gpu/src/host/menu.rs:667 — manual_is_multiple_of - crates/victory-gpu/src/host/panel.rs:602 — collapsible_if (Stats::draw) - crates/victory-gpu/src/host/panel.rs:668 — collapsible_if (Notice::draw) Each fix is the form clippy itself prescribes: `too_many_arguments` is allowed with a one-line `shortcut:` comment on the two GDI helpers (the existing in-tree style; no call-site churn), `% == 0` becomes `.is_multiple_of` for the compile-time constant divisor, and the two nested `if` blocks collapse into `&& let` chains (edition 2024). No runtime behavior changes. This is the same change as #4680 and #4708, opened earlier today. What this request adds over them, stated exactly: their branches share no merge base with main — both are listed CONFLICTING, their forks predating the 2026-11-26 base change — so neither can be merged as pushed. This branch is a single commit directly on top of current main and merges cleanly. Happy to close it the moment either of them lands mergeable; the only purpose here is that the gate unblocks with a branch that can actually merge. ## How it was tested - GPU and profile: not tested against the title. Lint-level rewrites with no runtime effect; the surfaces touched are the F1 menu and the F3 panel. - Before: at `5fabb46`, `cargo clippy --workspace --all-targets --locked -- -D warnings` fails with the five findings above, so every pull request based on current main fails CI at gate 1. - After: both strict workspace Clippy commands pass (`--all-targets`, and `--all-targets --all-features`, `-D warnings` everywhere), and `cargo test --workspace --locked` passes for the whole workspace, the 464-file policy test (`repository_passes_policy`) included, with one test skipped: `modules::xmem::tests::a_read_by_range_waits_only_for_a_remapping_that_meets_it`. That test is the parallel-run interference flake of #2420 (fix open in #2439): it failed 3 of 3 full parallel runs on pristine main with this change stashed and 3 of 3 with it applied, passing whenever run alone. Unrelated to this change. - For shader changes, the wave sizes tested: n/a (no shader changes). - `cargo test` passed for the crates it touches: yes — all of them. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #4680, #4708 (identical fixes, both CONFLICTING — no merge base with main), and the CI-restore work #2620, #2420, #2439, with the earlier clippy-repair requests #2792, #3530, #4166, #2048 predating all of these findings.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 18:57:59 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host/font.rs
  • crates/victory-gpu/src/host/menu.rs
  • crates/victory-gpu/src/host/panel.rs
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.
git fetch -u origin '+refs/pull/5074/head:github-bot/gh-5073'
git switch 'github-bot/gh-5073'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-5073'
git switch 'github-bot/gh-5073'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-5073'
git switch 'github-bot/gh-5073'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-5073'
git switch 'main'
git merge --squash 'github-bot/gh-5073'
git switch 'main'
git merge --ff-only 'github-bot/gh-5073'
git switch 'main'
git merge 'github-bot/gh-5073'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!5074
No description provided.