lint tables: inherit the root rust lints in both greenfield workspaces #108
No reviewers
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!108
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-108"
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?
@TheRifai on GitHub · 2026-12-01 14:17 UTC · original
TheRifai:lint-table-final→main· +74 −37 · 8 files · 2 commits · merged 2026-12-01 14:29 UTCWhat
Finishes docs/TASKS.md “The root workspace's rustc lints everywhere” (issue #41). Both greenfield workspaces now inherit the root
[workspace.lints.rust]table (unsafe_op_in_unsafe_fn,unused_must_use), and xtask'slint_tables_matchchecks the rust table alongside clippy. The unsafe operations in test and bin targets, which crate attributes inlib.rsdo not cover, have narrowunsafe {}blocks with SAFETY notes. The library sites were done in #101/#102/#104, now merged.The reference
The root
Cargo.tomlis the policy source; the two copies and the xtask check keep the fork's workspaces in sync with it.Evidence
cargo check --workspace --all-targets --lockedclean in bothgreenfield/andgreenfield/wine/with the deny inherited.tools/build.shsucceeds.Checklist (docs/AGENTS.md)
docs/TASKS.mdnot edited (rule 29/31)@vktory6 on GitHub · 2026-12-01 14:19 UTC · original
Thanks, the table part and the xtask check are exactly right, and the one-line
rd/wrhelpers are fine as they are (one operation each).One thing before it can merge: five test-harness functions went back to the whole-body shape from #94/#95,
{ unsafe { … }}around the full body:umem/tests/identity_probe.rs:alloc_at(25 lines),freeumem/tests/sparse_probe.rs:sparse_buffer,bindumem/tests/sparse_speed.rs:pipeTest code follows the same rule (rule 36), so please give them the #101 treatment: a
/// # Safetysection for the caller's contract instead of the// SAFETY:line above thefn, and narrow blocks with a reason each. Inalloc_atthe reasons can be short ("info's chain lives until the call returns", "bufandmemare this device's and unbound"). Alternatively, if a function has no real precondition for its caller, make it a plainfnwith narrow blocks inside; that's often the cleaner fix for test helpers.Everything else is ready; I'll merge as soon as those five are done (please push to this branch, no re-open).
@vktory6 on GitHub · 2026-12-01 14:30 UTC · original
Merged as
4447bb9, thanks! Plain functions with narrow blocks were the right call for those helpers. That finishes #41's lint work.