CI Clippy fails on a-publier: missing_transmute_annotations in victory-loader and victory-gpu #315
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#315
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@itsonewi on GitHub · 2026-11-26 19:53 UTC · original
Summary
cargo clippy --workspace --all-targets --locked -- -D warningsfails on the default branch (a-publier, headcd8dfc0) withclippy::missing_transmute_annotations(warn-by-default, promoted to an error by-D warnings). Rust is 1.98.1 fromrust-toolchain.toml.Evidence
Both failing runs are on branches whose diff against
cd8dfc0does not touch the failing files:1d10722; only.github/workflows/ci.ymlchanged): Clippy job failed.1be739a; onlycrates/victory-hle/src/modules/xmem.rschanged): Clippy job failed with the same diagnostics.Log excerpt from the Clippy job:
Code
crates/victory-loader/src/descriptor_sites.rs:261,277:The
(F, F)annotation on the binding is not enough: Clippy wants the source and destination types on eachtransmutecall.crates/victory-gpu/src/host/panel.rs:378,386:Here the destination is annotated but the source is
_.Suggested fix
Use explicit types:
Alternatively, add
#[allow(clippy::missing_transmute_annotations)]at the two call sites with a short reason, but the explicit annotations are small and keep the lint active elsewhere.Note:
crates/victory-loader/src/descriptor_sites.rsis inside a test module (the test builds executable memory and calls it), but--all-targetslints tests too.Environment
windows-latest, Rust 1.98.1cargo clippy --workspace --all-targets --locked -- -D warnings@BE29ZZ on GitHub · 2026-11-26 19:55 UTC · original
ok, trabalharei nisso para te ajudar
github-bot referenced this issue2026-11-26 20:12:51 +00:00
@BE29ZZ on GitHub · 2026-11-26 20:35 UTC · original
Opened #330 with the fix for this issue.
In addition to adding the missing
std::mem::transmutetype annotations incrates/victory-loader/src/descriptor_sites.rsandcrates/victory-gpu/src/host/panel.rs, it also resolves two remaining Clippy warnings ona-publier(crates/victory-gpu/src/watch.rs:3626unnecessary&mutandcrates/victory-gpu/src/texture.rs:46unuseddiagnostics-only field) so bothcargo clippy --workspace --all-targets --locked -- -D warningsand the--all-featurespass succeed cleanly (verified locally on Windows x64 with Rust 1.98.1).