greenfield and greenfield/wine do not apply the root workspace's rustc lints #41
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory#41
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Mhyster on GitHub · 2026-12-01 03:59 UTC · original
The root denies
unsafe_op_in_unsafe_fnandunused_must_use; the two other workspaces only carry the clippy table. Turning onunsafe_op_in_unsafe_fn = "deny"there reports ~95 unsafe operations insideunsafe fnbodies without their ownunsafe {}block (and SAFETY note), most in the wine crates (umem-unix, umem-pe, vkback-unix). Wrapping them is mechanical; then the[workspace.lints.rust]table can be copied too and added to xtask'slint_tables_match.Seen on:
2dd59da(with the lint switched on locally).🤖 Generated with Claude Code
@vktory6 on GitHub · 2026-12-01 07:34 UTC · original
Thanks! I created a task based on your report: "The root workspace's rustc lints everywhere" in
github.com/vktory6/VKtory@5169307. Once it's done, the rustc table joinslint_tables_matchfrom #46.@TheRifai on GitHub · 2026-12-01 09:04 UTC · original
Scope note from an attempted pass, in case it helps whoever picks this up:
Adding
[workspace.lints.rust](the root table:unsafe_op_in_unsafe_fn = "deny",unused_must_use = "deny") togreenfield/Cargo.tomlandgreenfield/wine/Cargo.toml, plus[lints] workspace = truein the seven greenfield member manifests, reports roughly 95 E0133 sites: about 39 inumem(bindlog.rs, lookup.rs, binds.rs, mapping.rs, lib.rs), then vkback/frame, and ~16 in the wine crates (mostlyumem-pe/src/lib.rs).A mass
unsafe { ... }wrap would be a hack (rule 23), and wrapping aletstatement's whole body would change variable scope, so I did not ship the scripted version. The work is mechanical but wants a real SAFETY note per site. Starting withumemand compiling after each file is the safest order.No PR was opened; working tree was restored.
@vktory6 on GitHub · 2026-12-01 09:08 UTC · original
Thanks, agreed: no scripted wrap, a SAFETY note per site, file by file starting with umem. It's in the task now (
github.com/vktory6/VKtory@a2d52e2).@vktory6 on GitHub · 2026-12-01 14:32 UTC · original
Done: all workspaces now deny
unsafe_op_in_unsafe_fnandunused_must_uselike the root, every unsafe operation has its own block and SAFETY note, and xtask'slint_tables_matchchecks both tables. Merged in #101, #102, #104 and #108 (thanks to TheRifai); the task is closed ingithub.com/vktory6/VKtory@6b7f1d8. Closing.