greenfield: deny unsafe_op_in_unsafe_fn in frame, vkback and vicrec #104

Manually merged
github merged 1 commit from github-bot/gh-104 into gh-pr/104/base 2026-12-01 14:30:00 +00:00 AGit
Owner

@⁠TheRifai on GitHub · 2026-12-01 13:52 UTC · original
TheRifai:greenfield-unsafe-narrow → main · +3 −0 · 3 files · 1 commits · merged 2026-12-01 14:29 UTC

What

frame, vkback and vicrec now deny unsafe_op_in_unsafe_fn (docs/TASKS.md “The root workspace's rustc lints everywhere”, issue #41). All three already wrapped every unsafe operation in an explicit unsafe {} block with a SAFETY note, so enabling the lint needs no code edits — only the crate attributes. umem and the wine crates are covered in their own PRs; the workspace-table switch comes last.

The reference

The root Cargo.toml's rustc lint table is the policy source.

Evidence

  • cargo check --workspace --all-targets --locked in greenfield/ passes with the denies in place; tools/build.sh and CI's native tests (11 + 16 + 151) plus policy (6) pass.

Checklist (docs/AGENTS.md)

  • One topic; docs/TASKS.md not edited (rule 29/31)
  • No fallback added (rule 33)
  • No constants or switches added (rules 2/9b)
  • No queues changed (rule 35)
  • No new unsafe operations (rule 36)
  • Check, build and tests pass; no translator output change (rule 27)
  • Comments say what is true now (rule 3)
  • Nothing from the title, no non-free data pointers (hard constraints)
**@⁠TheRifai** on GitHub · 2026-12-01 13:52 UTC · [original](https://github.com/vktory6/VKtory/pull/104) `TheRifai:greenfield-unsafe-narrow` → `main` · +3 −0 · 3 files · 1 commits · merged 2026-12-01 14:29 UTC ## What `frame`, `vkback` and `vicrec` now deny `unsafe_op_in_unsafe_fn` (docs/TASKS.md “The root workspace's rustc lints everywhere”, issue #41). All three already wrapped every unsafe operation in an explicit `unsafe {}` block with a SAFETY note, so enabling the lint needs no code edits — only the crate attributes. umem and the wine crates are covered in their own PRs; the workspace-table switch comes last. ## The reference The root Cargo.toml's rustc lint table is the policy source. ## Evidence - `cargo check --workspace --all-targets --locked` in `greenfield/` passes with the denies in place; `tools/build.sh` and CI's native tests (11 + 16 + 151) plus policy (6) pass. ## Checklist (docs/AGENTS.md) - [x] One topic; `docs/TASKS.md` not edited (rule 29/31) - [x] No fallback added (rule 33) - [x] No constants or switches added (rules 2/9b) - [x] No queues changed (rule 35) - [x] No new unsafe operations (rule 36) - [x] Check, build and tests pass; no translator output change (rule 27) - [x] Comments say what is true now (rule 3) - [x] Nothing from the title, no non-free data pointers (hard constraints)
These three crates already wrap every unsafe operation in an unsafe block, so
enabling the lint (docs/TASKS.md, issue #41) needs no code edits: only the crate
attributes. Check, build and CI tests pass.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 13:52:24 +00:00
github-bot changed target branch from main to gh-pr/104/base 2026-12-01 14:29:54 +00:00
github manually merged commit 060a76ef04 into gh-pr/104/base 2026-12-01 14:30:00 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-01 14:30 UTC · original

Merged as f080108, thank you!

**@⁠vktory6** on GitHub · 2026-12-01 14:30 UTC · [original](https://github.com/vktory6/VKtory/pull/104#issuecomment-7314369691) Merged as f080108, thank you!
This discussion has been locked. Commenting is limited to contributors.
No description provided.