cli: preserve whole-array arguments for explicit array parameters

This commit is contained in:
dev committed 2026-10-07 22:29:45 +03:00
1 parent f733f7c7bb
commit dde801c653
44 files changed
+397 -9

No files matched your search

+1
View File
@@ -23,6 +23,7 @@ CHECKLIST = [
("block boundaries", "bare block before dereference", r"\}\s*\*", True),
("borrow returns", "explicit return origin", r"-> (?:ref|mut|slice|slice_mut)<[^>]+> from ", True),
("borrow returns", "returned view binding", r"(?:ref|mut) \w+ = (?:first|view|allocate)(?:::<[^>]+>)?\(", True),
("borrows", "fixed-array borrow parameter", r": (?:ref|mut)<\[[^;\n]+; \d+\]>", True),
("hashmap", "explicit general key policy and owning insert", r"std\.hashmap\.(insert|contains|get)::<", True),
("hashmap", "explicit general growth/extraction/drain", r"std\.hashmap\.(reserve|remove|pop|free)::<", True),
("hashset", "explicit membership and duplicate owner return", r"std\.hashset\.(insert|contains)::<", True),