chore(shader): move the gfx10 test module to the end of fields.rs #419

Manually merged
github merged 1 commit from github-bot/gh-419 into main 2026-12-04 03:42:19 +00:00 AGit
Owner

@⁠Luxuride on GitHub · 2026-12-04 01:46 UTC · original
Luxuride:chore/shader-test-module-last → main · +54 −53 · 1 files · 1 commits · merged 2026-12-04 03:41 UTC

What

crates/victory-shader/src/gfx10/fields.rs has #[cfg(test)] mod wrap_addtid_tests in the middle of the file (line 771), with production code after it (data_dwords, image_addr_dwords, to the end of the file). The file therefore trips clippy::items_after_test_module:

crates/victory-shader/src/gfx10/fields.rs:771:1: error: items after a test module

Pure move: the test module is cut from the middle and re-appended after the file's last item. Nothing inside it changes, and the module's use super::*; works from either position.

Validation

cargo clippy -p victory-shader --lib --tests -- -D clippy::items_after_test_module
result
main error: items after a test module → could not compile victory-shader (lib test)
this branch exit 0

Overlap check

crates/victory-shader/src/gfx10/fields.rs appears in no open PR's file list, and no issue mentions this module.

**@⁠Luxuride** on GitHub · 2026-12-04 01:46 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/419) `Luxuride:chore/shader-test-module-last` → `main` · +54 −53 · 1 files · 1 commits · merged 2026-12-04 03:41 UTC ## What `crates/victory-shader/src/gfx10/fields.rs` has `#[cfg(test)] mod wrap_addtid_tests` in the middle of the file (line 771), with production code after it (`data_dwords`, `image_addr_dwords`, to the end of the file). The file therefore trips `clippy::items_after_test_module`: ``` crates/victory-shader/src/gfx10/fields.rs:771:1: error: items after a test module ``` Pure move: the test module is cut from the middle and re-appended after the file's last item. Nothing inside it changes, and the module's `use super::*;` works from either position. ## Validation ``` cargo clippy -p victory-shader --lib --tests -- -D clippy::items_after_test_module ``` | | result | |---|---| | `main` | `error: items after a test module` → `could not compile victory-shader (lib test)` | | this branch | exit 0 | ## Overlap check `crates/victory-shader/src/gfx10/fields.rs` appears in no open PR's file list, and no issue mentions this module.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 01:49:31 +00:00
github manually merged commit 0c9861d859 into main 2026-12-04 03:42:19 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.