cli: implement explicit source borrow returns

This commit is contained in:
dev committed 2026-10-07 18:20:45 +03:00
1 parent 715a8be491
commit a9a0d63f27
78 files changed
+970 -48

No files matched your search

+2
View File
@@ -20,6 +20,8 @@ TESTS = os.path.join(ROOT, "tests", "conformance", "source")
# (area, construct, regex, needs a reject test)
CHECKLIST = [
("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),
("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),