Clippy: annotate the two bare transmutes (#315) #322
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!322
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-322"
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?
@Arboff on GitHub · 2026-11-26 20:08 UTC · original
Arboff:fix/clippy-transmute-annotations→a-publier· +2 −2 · 2 files · 1 commits · openFixes #315.
cargo clippy --workspace --all-targets --locked -- -D warningsfails ona-publier(cd8dfc0) withclippy::missing_transmute_annotationsat three calls in two places. This PR names the source and destination types on each one:crates/victory-loader/src/descriptor_sites.rs:277(test):transmute(plain)/transmute(hooked)→transmute::<usize, F>(…). The(F, F)annotation on the tuple binding wasn't enough for the lint.crates/victory-gpu/src/host/panel.rs:386:transmute::<_, NtQuery>(p)→transmute::<unsafe extern "system" fn() -> isize, NtQuery>(p). That source type is theFARPROCthatGetProcAddressreturns, after?.The types are the ones Clippy suggests, and the behavior doesn't change. No other bare
transmutein the workspace is flagged: the rest bind to an annotatedlet, which the lint accepts.Testing: I couldn't run Clippy locally because there's no Rust toolchain on this machine, so this PR's Clippy job is the check. The overall
checkjob may still fail because of #314, the depth-bounds test that fails on the GPU-less runner. This PR doesn't touch that.🤖 Generated with Claude Code
@lvndrpup on GitHub · 2026-11-27 03:54 UTC · original
The same two annotations are now in
a-publier: #330 made them in41aec5e("ci: fix Clippy warnings on a-publier (#315)"), merged as392766f, and #315 is closed. On4eb6cfd,panel.rs:383anddescriptor_sites.rs:277read exactly as this PR has them, so merging it would change nothing.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.