CI Clippy fails on a-publier: missing_transmute_annotations in victory-loader and victory-gpu #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?
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by itsonewi on 2026-11-26T19:53:35Z.
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 warningsImported from Belobug/VIctory-Belobug-AMD. Originally posted by BE29ZZ on 2026-11-26T19:55:46Z.
ok, trabalharei nisso para te ajudar
Imported from Belobug/VIctory-Belobug-AMD. Originally posted by BE29ZZ on 2026-11-26T20:35:15Z.
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).