Files
metal2vulkan/crates
Anees Iqbal 203bc97bb9 Test counters of plan walks and twin-use checks: compiled only where their test is
What: binding.rs's PLAN_WALKS and plan_walks, and encoder.rs's TWIN_USES_CHECKED and
twin_uses_checked, with every increment of them, now take
cfg(all(test, debug_assertions, any(m2v_gpu, m2v_cpu_icd))), as kept_resident_checks beside
them does.

Why: their one reader, tests::resident_uses, compiles only with debug_assertions, so a release
test build under --cfg m2v_gpu or m2v_cpu_icd warned that plan_walks and twin_uses_checked are
never used (seen in the dlrate lane's release lavapipe build, job m3-max-31435), which fails
any release test build under -Dwarnings; debug clippy never sees it.

Verified: see the lane's report (a release test build under -Dwarnings and debug clippy).

Compiled in m3-max-31462 (msi: release lib test build under --cfg m2v_cpu_icd -Dwarnings; clippy --cfg m2v_gpu debug). Test-only cfg.
2026-11-14 22:32:27 -08:00
..