Shaders: the host LDS wait cap uses checked_div, so clippy's manual_checked_ops no longer stops the check #1855

Merged
101Leafy merged 3 commits from upstream-pr/1855 into main 2026-11-29 08:16:53 +00:00
101Leafy commented 2026-11-29 00:47:31 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-29T00:47:31Z.


The check job fails on main and on every open PR at crates/victory-shader/src/emit/lower.rs:2303 with clippy's "manual checked division". spare.checked_div(per).unwrap_or(0) gives the same cap, 0 when per is 0, and the check goes green again.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5546160659 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1855). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-29T00:47:31Z. --- The check job fails on main and on every open PR at `crates/victory-shader/src/emit/lower.rs:2303` with clippy's "manual checked division". `spare.checked_div(per).unwrap_or(0)` gives the same cap, 0 when `per` is 0, and the check goes green again.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!1855
No description provided.