gpu: document remaining unsafe blocks and re-enable undocumented_unsafe_blocks #499

Open
github-bot wants to merge 2 commits from github-bot/gh-499 into main AGit
Owner

@⁠JulioMelo259 on GitHub · 2026-11-25 01:45 UTC · original
JulioMelo259:lint/undocumented-unsafe-blocks → main · +19 −9 · 4 files · 2 commits · open

Re-enables clippy::undocumented_unsafe_blocks = "warn" in the workspace Cargo.toml (matching upstream) and adds canonical // SAFETY: comments documenting the safety invariants of the 6 remaining undocumented unsafe blocks in crates/victory-gpu:

  • crates/victory-gpu/src/host.rs (read_sparse)
  • crates/victory-gpu/src/indirect.rs (record_clamp_as and WARP comparison test)
  • crates/victory-gpu/src/inplace.rs (private, section, and cost probes)

Validation

  • cargo clippy --workspace --all-targets --all-features — 0 warnings
  • cargo test --workspace — 492 passed, 0 failed
  • cargo xtask policy — 169 files passed
**@⁠JulioMelo259** on GitHub · 2026-11-25 01:45 UTC · [original](https://github.com/fxceless/victory-fork/pull/499) `JulioMelo259:lint/undocumented-unsafe-blocks` → `main` · +19 −9 · 4 files · 2 commits · open Re-enables `clippy::undocumented_unsafe_blocks = "warn"` in the workspace `Cargo.toml` (matching upstream) and adds canonical `// SAFETY:` comments documenting the safety invariants of the 6 remaining undocumented `unsafe` blocks in `crates/victory-gpu`: - `crates/victory-gpu/src/host.rs` (`read_sparse`) - `crates/victory-gpu/src/indirect.rs` (`record_clamp_as` and WARP comparison test) - `crates/victory-gpu/src/inplace.rs` (`private`, `section`, and `cost` probes) ### Validation - `cargo clippy --workspace --all-targets --all-features` — 0 warnings - `cargo test --workspace` — 492 passed, 0 failed - `cargo xtask policy` — 169 files passed
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:44:47 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/499/head:github-bot/gh-499'
git switch 'github-bot/gh-499'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-499'
git switch 'github-bot/gh-499'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-499'
git switch 'github-bot/gh-499'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-499'
git switch 'main'
git merge --squash 'github-bot/gh-499'
git switch 'main'
git merge --ff-only 'github-bot/gh-499'
git switch 'main'
git merge 'github-bot/gh-499'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.