cli: disambiguate block statement boundaries
This commit is contained in:
1 parent
462ddd2c5c
commit
911982dd1c
33 files changed
+465
-7
No files matched your search
@@ -20,6 +20,7 @@ TESTS = os.path.join(ROOT, "tests", "conformance", "source")
|
||||
|
||||
# (area, construct, regex, needs a reject test)
|
||||
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),
|
||||
("hashmap", "explicit general key policy and owning insert", r"std\.hashmap\.(insert|contains|get)::<", True),
|
||||
|
||||
Reference in new issue
Block a user