cli: preserve whole-array arguments for explicit array parameters
This commit is contained in:
1 parent
f733f7c7bb
commit
dde801c653
44 files changed
+397
-9
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user